|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
edu.mines.jtk.io.ArrayOutputStream
public class ArrayOutputStream
An output stream that implements ArrayOutput.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
ArrayOutputStream(java.io.File file)
Constructs an array output stream for the specified file. |
|
ArrayOutputStream(java.io.File file,
java.nio.ByteOrder bo)
Constructs an array output stream for the specified file and byte order. |
|
ArrayOutputStream(java.io.FileOutputStream fos)
Constructs an array output stream for the specified file output stream. |
|
ArrayOutputStream(java.io.FileOutputStream fos,
java.nio.ByteOrder bo)
Constructs an array output stream for the specified file output stream and byte order. |
|
ArrayOutputStream(java.io.OutputStream os)
Constructs an array output stream for the specified stream. |
|
ArrayOutputStream(java.io.OutputStream os,
java.nio.ByteOrder bo)
Constructs an array output stream for the specified stream and byte order. |
|
ArrayOutputStream(java.lang.String name)
Constructs an array output stream for the specified file name. |
|
ArrayOutputStream(java.lang.String name,
java.nio.ByteOrder bo)
Constructs an array output stream for the specified file name and byte order. |
|
| Method Summary | |
|---|---|
java.nio.ByteOrder |
getByteOrder()
Gets the byte order for this stream. |
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)
|
| Methods inherited from class java.io.FilterOutputStream |
|---|
close, flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayOutputStream(java.io.OutputStream os)
os - the output stream.public ArrayOutputStream(java.io.FileOutputStream fos)
fos - the file output stream.
public ArrayOutputStream(java.lang.String name)
throws java.io.FileNotFoundException
name - the file name.
java.io.FileNotFoundException
public ArrayOutputStream(java.io.File file)
throws java.io.FileNotFoundException
file - the file.
java.io.FileNotFoundException
public ArrayOutputStream(java.io.OutputStream os,
java.nio.ByteOrder bo)
os - the output stream.bo - the byte order.
public ArrayOutputStream(java.io.FileOutputStream fos,
java.nio.ByteOrder bo)
fos - the file output stream.bo - the byte order.
public ArrayOutputStream(java.lang.String name,
java.nio.ByteOrder bo)
throws java.io.FileNotFoundException
name - the file name.bo - the byte order.
java.io.FileNotFoundException
public ArrayOutputStream(java.io.File file,
java.nio.ByteOrder bo)
throws java.io.FileNotFoundException
file - the file.bo - the byte order.
java.io.FileNotFoundException| Method Detail |
|---|
public java.nio.ByteOrder getByteOrder()
public void write(int b)
throws java.io.IOException
write in interface ArrayOutputwrite in interface java.io.DataOutputwrite in class java.io.FilterOutputStreamjava.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in interface ArrayOutputwrite in interface java.io.DataOutputwrite in class java.io.FilterOutputStreamjava.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface ArrayOutputwrite in interface java.io.DataOutputwrite in class java.io.FilterOutputStreamjava.io.IOException
public void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface ArrayOutputwriteBoolean in interface java.io.DataOutputjava.io.IOException
public void writeByte(int v)
throws java.io.IOException
writeByte in interface ArrayOutputwriteByte in interface java.io.DataOutputjava.io.IOException
public void writeShort(int v)
throws java.io.IOException
writeShort in interface ArrayOutputwriteShort in interface java.io.DataOutputjava.io.IOException
public void writeChar(int v)
throws java.io.IOException
writeChar in interface ArrayOutputwriteChar in interface java.io.DataOutputjava.io.IOException
public void writeInt(int v)
throws java.io.IOException
writeInt in interface ArrayOutputwriteInt in interface java.io.DataOutputjava.io.IOException
public void writeLong(long v)
throws java.io.IOException
writeLong in interface ArrayOutputwriteLong in interface java.io.DataOutputjava.io.IOException
public void writeFloat(float v)
throws java.io.IOException
writeFloat in interface ArrayOutputwriteFloat in interface java.io.DataOutputjava.io.IOException
public void writeDouble(double v)
throws java.io.IOException
writeDouble in interface ArrayOutputwriteDouble in interface java.io.DataOutputjava.io.IOException
public void writeBytes(java.lang.String s)
throws java.io.IOException
writeBytes in interface ArrayOutputwriteBytes in interface java.io.DataOutputjava.io.IOException
public void writeChars(java.lang.String s)
throws java.io.IOException
writeChars in interface ArrayOutputwriteChars in interface java.io.DataOutputjava.io.IOException
public void writeUTF(java.lang.String s)
throws java.io.IOException
writeUTF in interface ArrayOutputwriteUTF in interface java.io.DataOutputjava.io.IOException
public void writeBytes(byte[] v,
int k,
int n)
throws java.io.IOException
writeBytes in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeBytes(byte[] v)
throws java.io.IOException
writeBytes in interface ArrayOutputv - the array.
java.io.IOException
public void writeBytes(byte[][] v)
throws java.io.IOException
writeBytes in interface ArrayOutputv - the array.
java.io.IOException
public void writeBytes(byte[][][] v)
throws java.io.IOException
writeBytes in interface ArrayOutputv - the array.
java.io.IOException
public void writeChars(char[] v,
int k,
int n)
throws java.io.IOException
writeChars in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeChars(char[] v)
throws java.io.IOException
writeChars in interface ArrayOutputv - the array.
java.io.IOException
public void writeChars(char[][] v)
throws java.io.IOException
writeChars in interface ArrayOutputv - the array.
java.io.IOException
public void writeChars(char[][][] v)
throws java.io.IOException
writeChars in interface ArrayOutputv - the array.
java.io.IOException
public void writeShorts(short[] v,
int k,
int n)
throws java.io.IOException
writeShorts in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeShorts(short[] v)
throws java.io.IOException
writeShorts in interface ArrayOutputv - the array.
java.io.IOException
public void writeShorts(short[][] v)
throws java.io.IOException
writeShorts in interface ArrayOutputv - the array.
java.io.IOException
public void writeShorts(short[][][] v)
throws java.io.IOException
writeShorts in interface ArrayOutputv - the array.
java.io.IOException
public void writeInts(int[] v,
int k,
int n)
throws java.io.IOException
writeInts in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeInts(int[] v)
throws java.io.IOException
writeInts in interface ArrayOutputv - the array.
java.io.IOException
public void writeInts(int[][] v)
throws java.io.IOException
writeInts in interface ArrayOutputv - the array.
java.io.IOException
public void writeInts(int[][][] v)
throws java.io.IOException
writeInts in interface ArrayOutputv - the array.
java.io.IOException
public void writeLongs(long[] v,
int k,
int n)
throws java.io.IOException
writeLongs in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeLongs(long[] v)
throws java.io.IOException
writeLongs in interface ArrayOutputv - the array.
java.io.IOException
public void writeLongs(long[][] v)
throws java.io.IOException
writeLongs in interface ArrayOutputv - the array.
java.io.IOException
public void writeLongs(long[][][] v)
throws java.io.IOException
writeLongs in interface ArrayOutputv - the array.
java.io.IOException
public void writeFloats(float[] v,
int k,
int n)
throws java.io.IOException
writeFloats in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeFloats(float[] v)
throws java.io.IOException
writeFloats in interface ArrayOutputv - the array.
java.io.IOException
public void writeFloats(float[][] v)
throws java.io.IOException
writeFloats in interface ArrayOutputv - the array.
java.io.IOException
public void writeFloats(float[][][] v)
throws java.io.IOException
writeFloats in interface ArrayOutputv - the array.
java.io.IOException
public void writeDoubles(double[] v,
int k,
int n)
throws java.io.IOException
writeDoubles in interface ArrayOutputv - the array.k - the index of the first element to write.n - the number of elements to write.
java.io.IOException
public void writeDoubles(double[] v)
throws java.io.IOException
writeDoubles in interface ArrayOutputv - the array.
java.io.IOException
public void writeDoubles(double[][] v)
throws java.io.IOException
writeDoubles in interface ArrayOutputv - the array.
java.io.IOException
public void writeDoubles(double[][][] v)
throws java.io.IOException
writeDoubles in interface ArrayOutputv - the array.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||