com.kirkwarez.kirkpack.io.EndianInputStream.readLine()
DataInputStream uses a deprecated way. However, using a
BufferedReader internally isn't going to work, since it'll mess up
the stream (it buffers), and will require two objects each method call, since you
can't close it. Nobody should actually use this method, because it simply doesn't
make sense. A line in a byte stream?* A null terminated string I can understand...
but a line? I mean, strings are usually just stored as either null-terminted
strings or with some length attribute. Just read that out and bother with the
lines later. |