public interface BinaryInput extends BinaryStream
SEEK_CUR, SEEK_END, SEEK_SET| Modifier and Type | Method and Description |
|---|---|
StringValue |
appendTo(StringValue builder)
Appends to a string builder.
|
void |
close()
Closes the stream.
|
void |
closeRead()
Closes the stream for reading
|
int |
getAvailable() |
java.io.InputStream |
getInputStream()
Returns an InputStream to the input.
|
long |
getPosition()
Returns the current location in the stream
|
BinaryInput |
openCopy()
Opens a new copy.
|
int |
read()
Reads the next byte, returning -1 on eof.
|
int |
read(byte[] buffer,
int offset,
int length)
Reads into a buffer, returning -1 on eof.
|
StringValue |
read(int length)
Reads a Binary string.
|
StringValue |
readLine(long length)
Reads a line from the buffer.
|
boolean |
readOptionalLinefeed()
Reads the optional linefeed character from a \r\n
|
boolean |
setPosition(long offset)
Sets the current location in the stream
|
void |
unread()
Unreads the last byte.
|
isEOF, seek, statjava.io.InputStream getInputStream()
BinaryInput openCopy() throws java.io.IOException
java.io.IOExceptionint getAvailable()
throws java.io.IOException
java.io.IOExceptionint read() throws java.io.IOException
java.io.IOExceptionvoid unread()
throws java.io.IOException
java.io.IOExceptionint read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionStringValue read(int length) throws java.io.IOException
java.io.IOExceptionboolean readOptionalLinefeed()
throws java.io.IOException
java.io.IOExceptionStringValue readLine(long length) throws java.io.IOException
java.io.IOExceptionStringValue appendTo(StringValue builder) throws java.io.IOException
java.io.IOExceptionlong getPosition()
getPosition in interface BinaryStreamboolean setPosition(long offset)
setPosition in interface BinaryStreamvoid close()
close in interface BinaryStreamvoid closeRead()