public class WritableDataChannel extends AbstractChannel implements WritableDataPipe
WritableDataPipe
that uses nio.Constructor and Description |
---|
WritableDataChannel(WritableByteChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
int |
flushBuffer() |
DataOutputStream |
getOutputStream() |
long |
getTotalBytesWritten() |
void |
writeArray(Object array,
int arrayLength,
com.metsci.glimpse.util.io.datapipe.AbstractChannel.BufferWrapper buffer) |
void |
writeBoolean(boolean value) |
void |
writeBooleanArray(boolean[] values) |
void |
writeByte(byte value) |
void |
writeByteArray(byte[] values) |
void |
writeDouble(double value) |
void |
writeDoubleArray(double[] values) |
void |
writeFloat(float value) |
void |
writeFloatArray(float[] values) |
void |
writeInt(int value) |
void |
writeIntArray(int[] values) |
void |
writeLong(long value) |
void |
writeLongArray(long[] values) |
void |
writeShort(short value) |
void |
writeShortArray(short[] values) |
void |
writeString(String value)
Writes a string encoded in true UTF-8 format (not Java's modified UTF).
|
getChannel
public WritableDataChannel(WritableByteChannel channel) throws IOException
IOException
public long getTotalBytesWritten()
public int flushBuffer() throws IOException
IOException
public void writeBoolean(boolean value) throws IOException
writeBoolean
in interface WritableDataPipe
IOException
public void writeByte(byte value) throws IOException
writeByte
in interface WritableDataPipe
IOException
public void writeShort(short value) throws IOException
writeShort
in interface WritableDataPipe
IOException
public void writeInt(int value) throws IOException
writeInt
in interface WritableDataPipe
IOException
public void writeLong(long value) throws IOException
writeLong
in interface WritableDataPipe
IOException
public void writeFloat(float value) throws IOException
writeFloat
in interface WritableDataPipe
IOException
public void writeDouble(double value) throws IOException
writeDouble
in interface WritableDataPipe
IOException
public void writeBooleanArray(boolean[] values) throws IOException
writeBooleanArray
in interface WritableDataPipe
IOException
public void writeByteArray(byte[] values) throws IOException
writeByteArray
in interface WritableDataPipe
IOException
public void writeShortArray(short[] values) throws IOException
writeShortArray
in interface WritableDataPipe
IOException
public void writeIntArray(int[] values) throws IOException
writeIntArray
in interface WritableDataPipe
IOException
public void writeLongArray(long[] values) throws IOException
writeLongArray
in interface WritableDataPipe
IOException
public void writeFloatArray(float[] values) throws IOException
writeFloatArray
in interface WritableDataPipe
IOException
public void writeDoubleArray(double[] values) throws IOException
writeDoubleArray
in interface WritableDataPipe
IOException
public void writeArray(Object array, int arrayLength, com.metsci.glimpse.util.io.datapipe.AbstractChannel.BufferWrapper buffer) throws IOException
IOException
public void writeString(String value) throws IOException
WritableDataPipe
writeString
in interface WritableDataPipe
IOException
public void flush() throws IOException
flush
in interface WritableDataPipe
IOException
public void close() throws IOException
close
in interface WritableDataPipe
close
in class AbstractChannel
IOException
public DataOutputStream getOutputStream()
getOutputStream
in interface WritableDataPipe
Copyright © 2016 Metron, Inc.. All rights reserved.