Open Bug 303319 Opened 19 years ago Updated 2 years ago

Cannot mix ReadLine and Read calls on a FileInputStream

Categories

(Core :: Networking: File, defect, P5)

defect

Tracking

()

People

(Reporter: darin.moz, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-would-take])

Cannot mix ReadLine and Read calls on a FileInputStream

ReadLine has an internal buffer that Read does not know about.  As a result, it
is not possible to mix calls to ReadLine and Read on the same FileInputStream.
I need to mix readLine() and read() calls to a stream.

I was thinking of creating two streams to the same file, but apparently tell() doesn't work well with the lineinputstream, so I won't even know where to seek to.

Do you guys have any suggestion for a workaround? 
Assignee: darin → nobody
QA Contact: benc → networking.file
Blocks: 249341
No longer blocks: 249341
Blocks: 249341
Assignee: nobody → michal.novotny
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5

Unassigning Michal to move bugs back to triage pool.

Assignee: michal.novotny → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.