public class CircularBuffer extends Object implements Closeable
| Constructor and Description |
|---|
CircularBuffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
int |
read(byte[] data) |
int |
read(byte[] data,
int off,
int len) |
int |
read(byte[] data,
int off,
int len,
long timeout) |
int |
read(byte[] data,
long timeout) |
int |
readAvailable() |
long |
skip(long len) |
long |
skip(long len,
long timeout) |
int |
write(byte[] data) |
int |
write(byte[] data,
int off,
int len) |
int |
write(byte[] data,
int off,
int len,
long timeout) |
int |
write(byte[] data,
long timeout) |
int |
writeAvailable() |
public boolean isClosed()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic int readAvailable()
throws IOException
IOExceptionpublic int writeAvailable()
throws IOException
IOExceptionpublic int read(byte[] data)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int read(byte[] data,
long timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int read(byte[] data,
int off,
int len)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int read(byte[] data,
int off,
int len,
long timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int write(byte[] data)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int write(byte[] data,
long timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int write(byte[] data,
int off,
int len)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int write(byte[] data,
int off,
int len,
long timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic long skip(long len)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic long skip(long len,
long timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.