Closeable
, AutoCloseable
public 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, transferTo
public void putToken(byte[] buf, int off, int len)
public int read(byte[] data) throws IOException
read
in class InputStream
IOException
public int read(byte[] data, int off, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
protected boolean checkData()
protected boolean hasData()
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class InputStream
IOException
Copyright © 2018. All rights reserved.