edu.mines.jtk.io
Interface ArrayOutput

All Superinterfaces:
java.io.DataOutput
All Known Implementing Classes:
ArrayFile, ArrayOutputAdapter, ArrayOutputStream

public interface ArrayOutput
extends java.io.DataOutput

An interface for writing arrays of primitive values to a binary stream. This interfaces extends the standard interface DataOutput. It adds methods for writing arrays of primitive values.

Version:
2006.08.05
Author:
Dave Hale, Colorado School of Mines

Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(byte[] v)
          Writes byte elements from a specified array.
 void writeBytes(byte[][] v)
          Writes byte elements from a specified array.
 void writeBytes(byte[][][] v)
          Writes byte elements from a specified array.
 void writeBytes(byte[] v, int k, int n)
          Writes byte elements from a specified array.
 void writeBytes(java.lang.String s)
           
 void writeChar(int v)
           
 void writeChars(char[] v)
          Writes char elements from a specified array.
 void writeChars(char[][] v)
          Writes char elements from a specified array.
 void writeChars(char[][][] v)
          Writes char elements from a specified array.
 void writeChars(char[] v, int k, int n)
          Writes char elements from a specified array.
 void writeChars(java.lang.String s)
           
 void writeDouble(double v)
           
 void writeDoubles(double[] v)
          Writes double elements from a specified array.
 void writeDoubles(double[][] v)
          Writes double elements from a specified array.
 void writeDoubles(double[][][] v)
          Writes double elements from a specified array.
 void writeDoubles(double[] v, int k, int n)
          Writes double elements from a specified array.
 void writeFloat(float v)
           
 void writeFloats(float[] v)
          Writes float elements from a specified array.
 void writeFloats(float[][] v)
          Writes float elements from a specified array.
 void writeFloats(float[][][] v)
          Writes float elements from a specified array.
 void writeFloats(float[] v, int k, int n)
          Writes float elements from a specified array.
 void writeInt(int v)
           
 void writeInts(int[] v)
          Writes int elements from a specified array.
 void writeInts(int[][] v)
          Writes int elements from a specified array.
 void writeInts(int[][][] v)
          Writes int elements from a specified array.
 void writeInts(int[] v, int k, int n)
          Writes int elements from a specified array.
 void writeLong(long v)
           
 void writeLongs(long[] v)
          Writes long elements from a specified array.
 void writeLongs(long[][] v)
          Writes long elements from a specified array.
 void writeLongs(long[][][] v)
          Writes long elements from a specified array.
 void writeLongs(long[] v, int k, int n)
          Writes long elements from a specified array.
 void writeShort(int v)
           
 void writeShorts(short[] v)
          Writes shorts elements from a specified array.
 void writeShorts(short[][] v)
          Writes short elements from a specified array.
 void writeShorts(short[][][] v)
          Writes short elements from a specified array.
 void writeShorts(short[] v, int k, int n)
          Writes short elements from a specified array.
 void writeUTF(java.lang.String s)
           
 

Method Detail

write

void write(int b)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

void write(byte[] b)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

void write(byte[] b,
           int off,
           int len)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

writeBoolean

void writeBoolean(boolean v)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeByte

void writeByte(int v)
               throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

void writeShort(int v)
                throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

void writeChar(int v)
               throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

void writeInt(int v)
              throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

void writeLong(long v)
               throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

void writeFloat(float v)
                throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

void writeDouble(double v)
                 throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

void writeBytes(java.lang.String s)
                throws java.io.IOException
Specified by:
writeBytes in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

void writeChars(java.lang.String s)
                throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

void writeUTF(java.lang.String s)
              throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

void writeBytes(byte[] v,
                int k,
                int n)
                throws java.io.IOException
Writes byte elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeBytes

void writeBytes(byte[] v)
                throws java.io.IOException
Writes byte elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeBytes

void writeBytes(byte[][] v)
                throws java.io.IOException
Writes byte elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeBytes

void writeBytes(byte[][][] v)
                throws java.io.IOException
Writes byte elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeChars

void writeChars(char[] v,
                int k,
                int n)
                throws java.io.IOException
Writes char elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeChars

void writeChars(char[] v)
                throws java.io.IOException
Writes char elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeChars

void writeChars(char[][] v)
                throws java.io.IOException
Writes char elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeChars

void writeChars(char[][][] v)
                throws java.io.IOException
Writes char elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeShorts

void writeShorts(short[] v,
                 int k,
                 int n)
                 throws java.io.IOException
Writes short elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeShorts

void writeShorts(short[] v)
                 throws java.io.IOException
Writes shorts elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeShorts

void writeShorts(short[][] v)
                 throws java.io.IOException
Writes short elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeShorts

void writeShorts(short[][][] v)
                 throws java.io.IOException
Writes short elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeInts

void writeInts(int[] v,
               int k,
               int n)
               throws java.io.IOException
Writes int elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeInts

void writeInts(int[] v)
               throws java.io.IOException
Writes int elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeInts

void writeInts(int[][] v)
               throws java.io.IOException
Writes int elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeInts

void writeInts(int[][][] v)
               throws java.io.IOException
Writes int elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeLongs

void writeLongs(long[] v,
                int k,
                int n)
                throws java.io.IOException
Writes long elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeLongs

void writeLongs(long[] v)
                throws java.io.IOException
Writes long elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeLongs

void writeLongs(long[][] v)
                throws java.io.IOException
Writes long elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeLongs

void writeLongs(long[][][] v)
                throws java.io.IOException
Writes long elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeFloats

void writeFloats(float[] v,
                 int k,
                 int n)
                 throws java.io.IOException
Writes float elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeFloats

void writeFloats(float[] v)
                 throws java.io.IOException
Writes float elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeFloats

void writeFloats(float[][] v)
                 throws java.io.IOException
Writes float elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeFloats

void writeFloats(float[][][] v)
                 throws java.io.IOException
Writes float elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeDoubles

void writeDoubles(double[] v,
                  int k,
                  int n)
                  throws java.io.IOException
Writes double elements from a specified array.

Parameters:
v - the array.
k - the index of the first element to write.
n - the number of elements to write.
Throws:
java.io.IOException

writeDoubles

void writeDoubles(double[] v)
                  throws java.io.IOException
Writes double elements from a specified array. The array length equals the number of elements to write.

Parameters:
v - the array.
Throws:
java.io.IOException

writeDoubles

void writeDoubles(double[][] v)
                  throws java.io.IOException
Writes double elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException

writeDoubles

void writeDoubles(double[][][] v)
                  throws java.io.IOException
Writes double elements from a specified array.

Parameters:
v - the array.
Throws:
java.io.IOException