Does java support file seeking operation?

Just like MFC CFile::Seek or API seekp.
What I want to do is to write on indicated position in the file.

Maybe the RandomAccessFile class will help you ...
Nicolas

Similar Messages

  • Does Java Support Signing

    Hello All:
    I want to develop a application which would sign the file that need to be passed through unsecure channel.
    Does Java support the same.
    Regards
    Ritesh

    Dear Sir:
    Thanks for the mail.Well last time I did send you a source code of the Encryption/Decryption of a text file.I want to store the file type of the file in a appropriate way instead of using Encrypting the extension.
    And after the encryption ,I want to modify the application to have the content of the complete file to signed.I would request you to advice me whether the complete file content is signed or just the generated key for encryption.
    Let me hear from you.
    regards
    Ritesh

  • Validate form entries: does java support regular expressions?

    i want to validate form entries, does java support regular express like javascript?

    Just recently in 1.4 regex was finally introduced :)
    Take a look at http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/

  • How does java support the concept of destructor?

    How does java support the concept of destructor?

    @KunalSurana: before you flood the forum with basic questions, do us a favour and read.
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • Target data source does not support the AGO operation

    Hi,
    In BI Admin Tool, I join Essbase cube and relational source. Then I apply Ago function to Essbase measures. In BI Answer, I try to run query that includes Essbase Ago measures and relational columns(non measures), error message shows the following detail:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22001] Target data source does not support the AGO operation. (HY000)
    When I remove the relational columns or run Essbase current-date messures, the result is fine.
    So, what's exact meaning of this error message? and does the relational columns (non-measure) support Essbase measures' Ago function?

    to clarify:
    fail case:
    criteria
    YEAR | YTD,gen03 | MONTH_NAME | SALES(YEAR_AGO)
    cube dimension: year, ytd,gen03
    relational source: month_name
    cube measure using AGO(): sales(year_ago)
    result: error messageSuccess case:
    criteria
    YEAR | YTD,gen03 | SALES(YEAR_AGO)
    cube dimension: year, ytd,gen03
    cube measure using AGO(): sales(year_ago)
    result: success~! how can i solve it? thx

  • Does Java support Arabic?

    Hi,
    I am in the process of establishing a financial web application. The application needs to be bilingual, i.e English and Arabic. My Question is: Does Java support Arabic? and which DB can i use with it to facilitate my need?
    Thanks,
    Maha

    I18N web application is an application that can deliver the content according to the locale of the browser.We can build these applications easily by using the tags available as part of JSTL's.
    Check whether Arabic language is supported by java or not.
    request.getLocale() returns java.util.locale object.
    This object contains the details of language code & country code.
    Try out
    Kalpana

  • How does java support the doc files

    Hai all,
    I am doing a project where the back up word files are to be displayed on the browser . If it is a text file we can give it as a input stream and if it is a image , it will take it as a .jpg . Then how the .doc can be inputed(I want the MS-word files to be inputed) .
    If u have a solution please mail it to
    E-mail ID : [email protected]

    I am bit confused about ur requirement.
    U cannot open a file thr' ur applet which runs in a browser. Do do so, u may have to modify the java policy file or use signed applet. These two links may be of some help for u.
    http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/data.html#applet
    http://java.sun.com/docs/books/tutorial/security1.2/tour1/step2.html
    But I have written a mail long back to ur email with regard to Java Securiy. plz read it. If u need more abt it, get back to me.

  • Does java support Flash files?

    I wanted to use Flash to display some animation in my application, but I'm not sure if Java will support it. Anyone know where I can find info on this subject?

    You can't use Flash in AWT or Swing, if that was what "support" meant in that question. Flash is only a browser plug-in as far as I know.

  • AutoVue server does not support file conversion

    We've developed the ISDK for viewing the files and it's working fine. As the next step, it's required to use AutoVue Web Services to convert the files to pdf and jpeg formats.
    I've deployed the AutoVueWS.war and VueServlet.war files in our application server and ping method works fine. But the 'Convert' method in web services gives below error.
    javax.xml.ws.soap.SOAPFaultException: convert failed:File conversion not supported. ConvertOption[|Format:PDF|ScaleType:TYPE_SIZE|ScaleFactor:0|Width:800.0|Height:600.0|PageType:RANGE|FromPage:1|ToPage:1|ColorDepth:-1|FileName:c:/output/readme.txt-1357634753084.1.PDF|StepsPerInch:0.0|CameraView:NONE]
         at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
         at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
         at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
         at $Proxy32.convert(Unknown Source)
         at autovuewsclient2.AutoVueWSClient2.main(AutoVueWSClient2.java:50)
    The client code is as below.
    VueBeanWS_Service service = new VueBeanWS_Service();
    //create proxy
    VueBeanWS proxy = service.getVueBeanWSPort();
    //call autovue ping Web method
    System.out.print (proxy.ping("Hello from Java") );
    //Call the convert Web method.
    try{
    ConvertOption option = new ConvertOption();
    option.setFormat(Format.PDF);
    option.setPage(1);
    option.setScaleType(ScaleType.TYPE_SIZE);
    option.setHeight(600);
    option.setWidth(800);
    String URI = "http://wordpress.org/extend/plugins/about/readme.txt";
    byte[] file = proxy.convert(URI, option, null, false);
    FileOutputStream fos = new FileOutputStream("c:/temp/output1.pdf");
    fos.write(file);
    fos.close();
    catch(Exception e){
    e.printStackTrace();
    File in the above URI is downloaded to the AutoVue Server properly. But the conversion is failed.
    Please help me to solve this error.

    Hi,
    To convert files to PDF format, AutoVue uses a built-in proprietary PDF print driver called the AutoVue Document Converter. The above error may occur if this print driver is not properly installed. To install the AutoVue Document Converter print driver, execute the InstallPdfPrintDriver.exe program from your AutoVue installation directory. Before proceeding with the install make sure the "Print Spooler" service is started.
    Here are the necessary steps in order to enable the "Print Spooler":
    1. Go to Start > Settings > Control Panel > Administrative Tools.
    2. Select Services.
    3. Select the "Print Spooler" service and make sure to start it.
    4. Try to install the AutoVue Document Converter print driver.
    Thanks,
    Daniel

  • Does Numbers support files with passwords?

    Does the Numbers iPhone app support my Numbers file that is password protected?
    Thanks!

    the password protection will be removed as iOS does not have such a option.

  • Does Java support Digital UNIX?

    Is there a port of the Java SDK to Digital UNIX 4.0? I haven't been able to find the binaries anywhere on Sun's site. Does Sun's 'platform independant' offering only support Solaris, Linux, and Windows??

    Yes, that's correct. But Sun is not the only one writing SDKs. There are Java implementations for several other systems made by other organizations (such as IBM). And 30 seconds with http://www.google.com led me to this link:
    http://www.tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V40D_HTML/SUPPDOCS/JAVAPAGE.HTM

  • Does Java support dos based printing

    Hi,
    I want to print certain bills in a preprinted format. Can I develop an application in Java which allows me to place fields in any position on a paper and print the same in dos mode printing or fast printing unlike windows which is very slow in printing.
    The printing is going to be made in Dot matrix printing
    Thanking you,
    regards,
    Arun
    [email protected]

    Welcome to this forum. Check out the "search" window in the upper right side of this page. It will allow you to search this forum and answer your own question. A quick search of print DOS gave these results:
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=353823
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=745849
    On viewing these, your best bet is to probably output your results to a text file, then using Runtime.getRuntime().exec() call DOS's print command on your file just created.
    Good luck
    /Pete
    Message was edited by:
    petes1234

  • Does Java support mutliple sql statements in one call?

    statment.executeUpdate("DROP DATABASE IF EXISTS diy55;CREATE DATABASE IF NOT EXISTS diy55 DEFAULT CHARACTER SET utf8;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX,USAGE on diy55.* TO 'diy55'@'localhost' identified by 'diy55';FLUSH PRIVILEGES;");Java seemes doesn't support multiple sql statements in one call, just like PHP mysql_query(), is it?

    Then just extend the java.sql.Statement to your own Statement class and write logic which splits the given query at the right places and executes them one by one.
    That the mysql_query() already has it built-in wouldn't say that it isn't possible in Java. Comparing with PHP is a bit pointless, it is a completely different language.

  • Does EDQ support MINUS set operation

    Hi
    I would like to implement a MINUS set operation using EDQ - is this possible in EDQ?
    For example, I have duplicate records in my input set and I can use the group and merge processor to generate the unique records (btw, it selects the lowest id of the duplicate records) but I want to output all the other duplicated records (that were eliminated as part of group and merge processor) as part of separate output list so some cleanup action  can be taken on those records.
    For eg for following input set:
    id  code
    1   code1
    2   code 1
    3   code 2
    The output of group and merge (merge is done by code) is
    id code
    1  code1
    What I want is to store the following output (that was discarded by group and merge) for cleanup actions later - how I can achieve this using EDQ?
    id code
    2 code1
    Thank you for your time.
    Thanks,
    Priya

    Thanks Mike. Good to know about other configurable options under Merge BUT I'm still not sure how can I get a list of "other" duplicated values - other than the one that is the output of Group and Merge processor.
    Once again, my input data set is something like
    <id>  <code>
    1       code1
    2       code 1
    3       code 2
    The output of group and merge (merge is done by code and it uses the default to select the lowest id or first one available) is
    <id> <code>
    1      code1
    (The above default behavior for the Group and merge is fine for our example.
    BUT, What I want is to store the following output (that was discarded by group and merge) for cleanup actions later - how I can achieve this using EDQ?
    <id> <code>
    2      code1
    (As you notice, code1 is duplicated twice in the input data set and I want to write to the output the other record - meaning id=2 in the above example)
    Thanks,
    Priya

  • Does Safari support the lazy operator in a JavaScript regular expression?

    I've already filed a bug for this. Anyway I'd like to know if you already knew it.
    If you go to http://noteslog.com/personal/projects/regexp/test.html you'll see an input box and a "Go!" button. Put a JavaScript regular expression in the box and click the button. Shortly you'll see a red line showing how many characters have been matched.
    If you try
    \[\w\W\]
    you get a correct result (all matched)
    but if you try
    <\?\[\w\W\]*?\?>
    you get a wrong result (nothing matched) and the issue is due to the fact that the ? after the * is not treated as a laziness operator.
    Test in IE, FF, and Opera too, and you'll see that they work as expected.
    Message was edited by: Andrea Ercolino

    If you try it from http://regexpal.com/ you'll see that it works as it should in IE and FF but not in Safari.
    Message was edited by: Andrea Ercolino

Maybe you are looking for

  • Access Summary column in a query

    Hi All, I am new to oracle reports. I am using report builder 10.1.2.0.2. I have a summary column in my report. I would like to use this summary column in another query. if is use this column directly in the query, i am getting the below error: "Fiel

  • Can't start iTunes!

    Please help!!! I can't start up my iTunes! Even when I start comes the following alert: THE INITIALISING OF iTunes IS MALFUNCTION. - MISTAKE #-2093 PLEASE MAKE SURE, THAT QUICKTIME IS INSTALLED CORRECTLY ON THIS COMPUTER! My answer is: Yes I think so

  • Simultaneous Video & Multitrack Audio Capture with FCS?

    Hello! We're about to start videotaping our services; we have a JVC GY-HD110U video camera, we bought a 24-inch iMac with 4GB RAM a couple of weeks ago, and we just ordered Final Cut Studio. We already have iMovie and Final Cut Express, so I know I c

  • Reg bapi for xd01 txn

    Dear Freinds, Pls let me know the BAPI for XD01 appl ( customer master) Regards, Manoj

  • Issue with the Receiving Transaction Processor Standard Program

    We are facing issue in the Receiving Transaction Processor Standard Program. The error description is as below: RVTII-030: Subroutine rvtiicreate() returned error Cause: Subroutine rvtiicreate() returned an internal error. Action: Note this error num