public class TPipedInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
in |
protected int |
out |
protected static int |
PIPE_SIZE |
Constructor and Description |
---|
TPipedInputStream() |
TPipedInputStream(TPipedOutputStream out) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
connect(TPipedOutputStream src) |
int |
read() |
int |
read(byte[] bytes,
int offset,
int count) |
protected void |
receive(int oneByte) |
mark, markSupported, read, reset, skip
protected byte[] buffer
protected int in
protected int out
protected static final int PIPE_SIZE
public TPipedInputStream()
public TPipedInputStream(TPipedOutputStream out) throws IOException
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void connect(TPipedOutputStream src) throws IOException
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int offset, int count) throws IOException
read
in class InputStream
IOException
protected void receive(int oneByte) throws IOException
IOException
Copyright © 2019. All rights reserved.