protected static class AbstractConnection.LineReaderInputStream extends PushbackInputStream
buf, posin| 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, unreadreadprotected LineReaderInputStream(InputStream in, String encoding)
public String readLine() throws IOException
IOExceptionpublic String readContentAsString(int byteSize) throws IOException
byteSize - content sizeIOException - on errorpublic byte[] readContent(int byteSize)
throws IOException
byteSize - content sizeIOException - on errorCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.