protected static class AbstractConnection.LineReaderInputStream extends PushbackInputStream
buf, pos
in
Modifier | Constructor and Description |
---|---|
protected |
LineReaderInputStream(InputStream in,
String encoding) |
Modifier and Type | Method and Description |
---|---|
byte[] |
readContent(int byteSize)
Read byteSize bytes from inputStream, return content as byte array.
|
String |
readContentAsString(int byteSize)
Read byteSize bytes from inputStream, return content as String.
|
String |
readLine() |
available, close, mark, markSupported, read, read, reset, skip, unread, unread, unread
read
protected LineReaderInputStream(InputStream in, String encoding)
public String readLine() throws IOException
IOException
public String readContentAsString(int byteSize) throws IOException
byteSize
- content sizeIOException
- on errorpublic byte[] readContent(int byteSize) throws IOException
byteSize
- content sizeIOException
- on errorCopyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.