Closeable, AutoCloseablepublic class TokenInputStream extends InputStream
| Constructor | Description |
|---|---|
TokenInputStream() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
protected boolean |
checkData() |
|
void |
close() |
|
protected boolean |
hasData() |
|
void |
putToken(byte[] buf,
int off,
int len) |
|
int |
read() |
|
int |
read(byte[] data) |
|
int |
read(byte[] data,
int off,
int len) |
|
String |
toString() |
mark, markSupported, readAllBytes, readNBytes, reset, skip, transferTopublic void putToken(byte[] buf,
int off,
int len)
public int read(byte[] data)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] data,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionprotected boolean checkData()
protected boolean hasData()
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionCopyright © 2018. All rights reserved.