com.metsci.glimpse.util.io.datapipe
Interface WritableDataPipe

All Known Implementing Classes:
WritableDataChannel, WritableDataStream

public interface WritableDataPipe

Interface that can have either a regular io or an nio implementation.

Author:
hogye

Method Summary
 void close()
           
 void flush()
           
 java.io.DataOutputStream getOutputStream()
           
 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(java.lang.String value)
          Writes a string encoded in true UTF-8 format (not Java's modified UTF).
 

Method Detail

writeBoolean

void writeBoolean(boolean value)
                  throws java.io.IOException
Throws:
java.io.IOException

writeByte

void writeByte(byte value)
               throws java.io.IOException
Throws:
java.io.IOException

writeShort

void writeShort(short value)
                throws java.io.IOException
Throws:
java.io.IOException

writeInt

void writeInt(int value)
              throws java.io.IOException
Throws:
java.io.IOException

writeLong

void writeLong(long value)
               throws java.io.IOException
Throws:
java.io.IOException

writeFloat

void writeFloat(float value)
                throws java.io.IOException
Throws:
java.io.IOException

writeDouble

void writeDouble(double value)
                 throws java.io.IOException
Throws:
java.io.IOException

writeString

void writeString(java.lang.String value)
                 throws java.io.IOException
Writes a string encoded in true UTF-8 format (not Java's modified UTF).

Throws:
java.io.IOException

writeBooleanArray

void writeBooleanArray(boolean[] values)
                       throws java.io.IOException
Throws:
java.io.IOException

writeByteArray

void writeByteArray(byte[] values)
                    throws java.io.IOException
Throws:
java.io.IOException

writeShortArray

void writeShortArray(short[] values)
                     throws java.io.IOException
Throws:
java.io.IOException

writeIntArray

void writeIntArray(int[] values)
                   throws java.io.IOException
Throws:
java.io.IOException

writeLongArray

void writeLongArray(long[] values)
                    throws java.io.IOException
Throws:
java.io.IOException

writeFloatArray

void writeFloatArray(float[] values)
                     throws java.io.IOException
Throws:
java.io.IOException

writeDoubleArray

void writeDoubleArray(double[] values)
                      throws java.io.IOException
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

void flush()
           throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

java.io.DataOutputStream getOutputStream()


Copyright © 2012 Metron, Inc.. All Rights Reserved.