Reader on top of RandomAccessFile

Discussion in 'Java' started by Harald Kirsch, Aug 21, 2003.

  1. I have here files with character strings in
    different encodings mixed with binary data. In addition
    I have to jump around the file with seek(). The latter
    seems to indicate I have to use RandomAccessFile. After
    having identified a section with the string data
    and positioned the file pointer at its start, I would like
    to read it with a Reader to take care of the character
    encoding.

    I could not find a combination of standard classes to
    sandwich between a RandomAccessFile and the Reader, but
    maybe I am just blind.

    Do I have to implement my own Reader?

    Thanks,
    Harald.
     
    Harald Kirsch, Aug 21, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike
    Replies:
    0
    Views:
    1,301
  2. ak
    Replies:
    12
    Views:
    2,564
    Roedy Green
    Oct 24, 2003
  3. Christopher Dean

    RandomAccessFile vs. FileChannel

    Christopher Dean, Nov 18, 2003, in forum: Java
    Replies:
    3
    Views:
    1,401
    Michael Borgwardt
    Nov 19, 2003
  4. jpshahom
    Replies:
    2
    Views:
    367
    Roedy Green
    Nov 29, 2003
  5. ak
    Replies:
    6
    Views:
    1,095
    VisionSet
    Jul 9, 2004
  6. kelvSYC
    Replies:
    1
    Views:
    5,748
    Michael Borgwardt
    Aug 15, 2004
  7. Guilherme Grillo

    reader inside a reader

    Guilherme Grillo, Nov 7, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    775
    sloan
    Nov 7, 2007
  8. Pokkai Dokkai
    Replies:
    1
    Views:
    396
    Hassan Schroeder
    Mar 24, 2008
Loading...