public class BufferedDataOutputStreamPlus extends DataOutputStreamPlus
channel
Modifier | Constructor and Description |
---|---|
protected |
BufferedDataOutputStreamPlus(java.nio.ByteBuffer buffer) |
|
BufferedDataOutputStreamPlus(java.io.FileOutputStream fos) |
|
BufferedDataOutputStreamPlus(java.io.FileOutputStream fos,
int bufferSize) |
|
BufferedDataOutputStreamPlus(java.io.RandomAccessFile ras) |
|
BufferedDataOutputStreamPlus(java.io.RandomAccessFile ras,
int bufferSize) |
|
BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel wbc) |
protected |
BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel channel,
java.nio.ByteBuffer buffer) |
|
BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel wbc,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
<R> R |
applyToChannel(com.google.common.base.Function<java.nio.channels.WritableByteChannel,R> f)
Safe way to operate against the underlying channel.
|
void |
close() |
protected void |
doFlush() |
protected void |
ensureRemaining(int minimum) |
void |
flush() |
BufferedDataOutputStreamPlus |
order(java.nio.ByteOrder order) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(java.nio.ByteBuffer toWrite) |
void |
write(int b) |
void |
write(Memory memory,
long offset,
long length) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(java.lang.String s) |
void |
writeChar(int v) |
void |
writeChars(java.lang.String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(java.lang.String s) |
newDefaultChannel, retrieveTemporaryBuffer
public BufferedDataOutputStreamPlus(java.io.RandomAccessFile ras)
public BufferedDataOutputStreamPlus(java.io.RandomAccessFile ras, int bufferSize)
public BufferedDataOutputStreamPlus(java.io.FileOutputStream fos)
public BufferedDataOutputStreamPlus(java.io.FileOutputStream fos, int bufferSize)
public BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel wbc)
public BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel wbc, int bufferSize)
protected BufferedDataOutputStreamPlus(java.nio.channels.WritableByteChannel channel, java.nio.ByteBuffer buffer)
protected BufferedDataOutputStreamPlus(java.nio.ByteBuffer buffer)
public void write(byte[] b) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class java.io.OutputStream
java.io.IOException
public void write(java.nio.ByteBuffer toWrite) throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class java.io.OutputStream
java.io.IOException
public void writeBoolean(boolean v) throws java.io.IOException
java.io.IOException
public void writeByte(int v) throws java.io.IOException
java.io.IOException
public void writeShort(int v) throws java.io.IOException
java.io.IOException
public void writeChar(int v) throws java.io.IOException
java.io.IOException
public void writeInt(int v) throws java.io.IOException
java.io.IOException
public void writeLong(long v) throws java.io.IOException
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
java.io.IOException
public void writeBytes(java.lang.String s) throws java.io.IOException
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
java.io.IOException
public void writeUTF(java.lang.String s) throws java.io.IOException
java.io.IOException
public void write(Memory memory, long offset, long length) throws java.io.IOException
java.io.IOException
protected void doFlush() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
protected void ensureRemaining(int minimum) throws java.io.IOException
java.io.IOException
public <R> R applyToChannel(com.google.common.base.Function<java.nio.channels.WritableByteChannel,R> f) throws java.io.IOException
DataOutputPlus
java.io.IOException
public BufferedDataOutputStreamPlus order(java.nio.ByteOrder order)
Copyright © 2015 The Apache Software Foundation