com.github.libxjava.io
Class BufferedOutputStream
java.lang.Object
java.io.OutputStream
com.github.libxjava.io.BufferedOutputStream
public abstract class BufferedOutputStream
- extends OutputStream
- Version:
- libxjava-cldc - 0.3
- Author:
- Marcel Patzlaff
bufsize
protected final int bufsize
worklock
protected final Object worklock
BufferedOutputStream
protected BufferedOutputStream(int bufsize)
close
public void close()
throws IOException
- Overrides:
close in class OutputStream
- Throws:
IOException
clear
public final void clear()
flush
public final void flush()
throws IOException
- 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 © 2011 Marcel Patzlaff. All Rights Reserved.