Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class FifoFileInputStream extends InputStream
FifoFile| Modifier and Type | Method and Description |
|---|---|
protected void |
addStats(long bytes)
Adds to the stats of this stream.
|
int |
available()
Determines the number of bytes that may be read without blocking.
|
void |
close() |
long |
getReadBytes()
Gets the number of bytes read from this stream.
|
long |
getReadCount()
Gets the number of reads performed on this stream.
|
int |
read()
Reads data from the file, blocks until the data is available.
|
int |
read(byte[] b)
Reads data from the file, blocks until at least one byte is available.
|
int |
read(byte[] b,
int off,
int len)
Reads data from the file, blocks until at least one byte is available.
|
long |
skip(long n)
Skips data in the queue, blocks until at least one byte is skipped.
|
mark, markSupported, resetpublic long getReadCount()
public long getReadBytes()
protected void addStats(long bytes)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionFifoFile.close()Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.