public interface ArrayDataOutput
extends java.io.DataOutput
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(boolean[] buf) |
void |
write(boolean[] buf,
int offset,
int size) |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int offset,
int size) |
void |
write(char[] buf) |
void |
write(char[] buf,
int offset,
int size) |
void |
write(double[] buf) |
void |
write(double[] buf,
int offset,
int size) |
void |
write(float[] buf) |
void |
write(float[] buf,
int offset,
int size) |
void |
write(int[] buf) |
void |
write(int[] buf,
int offset,
int size) |
void |
write(long[] buf) |
void |
write(long[] buf,
int offset,
int size) |
void |
write(short[] buf) |
void |
write(short[] buf,
int offset,
int size) |
void |
write(java.lang.String[] buf) |
void |
write(java.lang.String[] buf,
int offset,
int size) |
void |
writeArray(java.lang.Object o)
Write a generic (possibly multi-dimenionsional) primitive or String
array.
|
void writeArray(java.lang.Object o)
throws java.io.IOException
This routine is not called 'write' to avoid possible compilation errors in routines which define only some of the other methods of the interface (and defer to the superclass on others). In that case there is an ambiguity as to whether to call the routine in the current class but convert to Object, or call the method from the super class with the same type argument.
o - The primitive or String array to be written.java.io.IOException - if the argument is not of the proper typevoid write(byte[] buf)
throws java.io.IOException
write in interface java.io.DataOutputjava.io.IOExceptionvoid write(boolean[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(short[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(char[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(int[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(long[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(float[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(double[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(java.lang.String[] buf)
throws java.io.IOException
java.io.IOExceptionvoid write(byte[] buf,
int offset,
int size)
throws java.io.IOException
write in interface java.io.DataOutputjava.io.IOExceptionvoid write(boolean[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(char[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(short[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(int[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(long[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(float[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(double[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid write(java.lang.String[] buf,
int offset,
int size)
throws java.io.IOException
java.io.IOExceptionvoid flush()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOException