public static interface BufferedInputStreamMultiplexer.Buffer
Modifier and Type | Method and Description |
---|---|
void |
closeSource()
Indicate that the source input stream is closed.
|
long |
getBytesWritten()
Return the number of bytes written into the buffer.
|
BufferedInputStreamMultiplexer.MultiplexerInputStream |
getInputStream()
Get a new input stream reading data from this buffer.
|
boolean |
isSourceClosed()
Return true if the source input stream is closed.
|
void |
setMultiplexer(BufferedInputStreamMultiplexer multiplexer)
Set the multiplexer.
|
void |
write(byte[] b,
int off,
int len)
Write data into the buffer.
|
void |
write(int b)
Write a single byte into the buffer.
|
void setMultiplexer(BufferedInputStreamMultiplexer multiplexer)
multiplexer
- multiplexer using the buffervoid write(byte[] b, int off, int len) throws IOException
b
- array containing the dataoff
- start offsetlen
- number of bytesIOException
- if there is a problem writing into the buffervoid write(int b) throws IOException
b
- byte to writeIOException
- if there is a problem writing into the buffervoid closeSource()
BufferedInputStreamMultiplexer.MultiplexerInputStream getInputStream() throws FileNotFoundException
FileNotFoundException
- if the file is not foundboolean isSourceClosed()
long getBytesWritten()
Copyright © 2016–2023. All rights reserved.