com.github.libxjava.io
Class BufferedOutputStream
java.lang.Object
java.io.OutputStream
com.github.libxjava.io.BufferedOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public abstract class BufferedOutputStream
- extends OutputStream
- Version:
- libxjava-jse5 - 0.2
- Author:
- Marcel Patzlaff
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufsize
protected final int bufsize
worklock
protected final Object worklock
BufferedOutputStream
protected BufferedOutputStream(int bufsize)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
clear
public final void clear()
flush
public final void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
write
public final void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public final void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
getPayloadStart
protected int getPayloadStart()
getPayloadEnd
protected int getPayloadEnd()
internalWrite
protected abstract void internalWrite(byte[] buffer,
int end,
boolean flushed)
throws IOException
end indicates the length of the payload and the first non-payload bytes.
- Throws:
IOException
Copyright © 2010 Marcel Patzlaff. All Rights Reserved.