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 FifoFileOutputStream extends OutputStream
FifoFile| Modifier and Type | Method and Description |
|---|---|
protected void |
addStats(long bytes)
Adds to the stats of this stream.
|
long |
available()
Gets the number of bytes that may be written before the
queue is full and blocks writes.
|
void |
close() |
void |
flush()
Flushes all updates to this file to the underlying storage device.
|
long |
getWriteBytes()
Gets the number of bytes written to this stream.
|
long |
getWriteCount()
Gets the number of writes performed on this stream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public long getWriteCount()
public long getWriteBytes()
protected void addStats(long bytes)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
RandomAccessFile.getChannel().force(true).flush in interface Flushableflush in class OutputStreamIOExceptionpublic long available()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionFifoFile.close()Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.