nom.tam.util
Interface ArrayDataOutput
- All Superinterfaces:
- DataOutput
- All Known Implementing Classes:
- AbstractArrayDataIO, BufferedDataOutputStream, BufferedFile, MappedFile, MultiMappedFile
public interface ArrayDataOutput
- extends DataOutput
Method Summary |
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(String[] buf)
|
void |
write(String[] buf,
int offset,
int size)
|
void |
writeArray(Object o)
Write a generic (possibly multi-dimenionsional) primitive or String
array. |
Methods inherited from interface java.io.DataOutput |
write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
writeArray
void writeArray(Object o)
throws IOException
- Write a generic (possibly multi-dimenionsional) primitive or String
array. An array of Objects is also allowed if all
of the elements are valid arrays.
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.
- Parameters:
o
- The primitive or String array to be written.
- Throws:
IOException
- if the argument is not of the proper type
write
void write(byte[] buf)
throws IOException
- Specified by:
write
in interface DataOutput
- Throws:
IOException
write
void write(boolean[] buf)
throws IOException
- Throws:
IOException
write
void write(short[] buf)
throws IOException
- Throws:
IOException
write
void write(char[] buf)
throws IOException
- Throws:
IOException
write
void write(int[] buf)
throws IOException
- Throws:
IOException
write
void write(long[] buf)
throws IOException
- Throws:
IOException
write
void write(float[] buf)
throws IOException
- Throws:
IOException
write
void write(double[] buf)
throws IOException
- Throws:
IOException
write
void write(String[] buf)
throws IOException
- Throws:
IOException
write
void write(byte[] buf,
int offset,
int size)
throws IOException
- Specified by:
write
in interface DataOutput
- Throws:
IOException
write
void write(boolean[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(char[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(short[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(int[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(long[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(float[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(double[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
write
void write(String[] buf,
int offset,
int size)
throws IOException
- Throws:
IOException
flush
void flush()
throws IOException
- Throws:
IOException
close
void close()
throws IOException
- Throws:
IOException
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.