Closeable
, AutoCloseable
public class NonBlockingPumpInputStream extends NonBlockingInputStream
EOF, READ_EXPIRED
Constructor | Description |
---|---|
NonBlockingPumpInputStream() |
|
NonBlockingPumpInputStream(int bufferSize) |
Modifier and Type | Method | Description |
---|---|---|
int |
available() |
|
protected void |
checkIoException() |
|
void |
close() |
|
OutputStream |
getOutputStream() |
|
int |
read(long timeout,
boolean isPeek) |
|
int |
readBuffered(byte[] b) |
|
void |
setIoException(IOException exception) |
peek, read, read, read, shutdown
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
public NonBlockingPumpInputStream()
public NonBlockingPumpInputStream(int bufferSize)
public OutputStream getOutputStream()
public int available()
available
in class InputStream
public int read(long timeout, boolean isPeek) throws IOException
read
in class NonBlockingInputStream
IOException
public int readBuffered(byte[] b) throws IOException
readBuffered
in class NonBlockingInputStream
IOException
public void setIoException(IOException exception)
protected void checkIoException() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class InputStream
IOException
Copyright © 2020. All rights reserved.