|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.services.io
Class ArrayUtil

java.lang.Objectorg.apache.derby.iapi.services.io.ArrayUtil
- public abstract class ArrayUtil
- extends java.lang.Object
Utility class for constructing and reading and writing arrays from/to formatId streams.
- Version:
- 0.1
| Constructor Summary | |
ArrayUtil()
|
|
| Method Summary | |
static void |
readArrayItems(java.io.ObjectInput in,
java.lang.Object[] a)
Read an array of objects out of a stream. |
static int |
readArrayLength(java.io.ObjectInput in)
Read the length of an array of objects in an object stream. |
static boolean[] |
readBooleanArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput. |
static int[] |
readIntArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput. |
static int[][] |
readInts(java.io.ObjectInput in)
|
static long[] |
readLongArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput. |
static java.lang.Object[] |
readObjectArray(java.io.ObjectInput in)
Reads an array of objects from the stream. |
static java.lang.String[] |
readStringArray(java.io.ObjectInput in)
Read an array of strings from an ObjectInput. |
static void |
writeArray(java.io.ObjectOutput out,
java.lang.Object[] a)
Write an array of objects and length to an output stream. |
static void |
writeArrayItems(java.io.ObjectOutput out,
java.lang.Object[] a)
Write an array of objects to an output stream. |
static void |
writeArrayLength(java.io.ObjectOutput out,
java.lang.Object[] a)
Write the length of an array of objects to an output stream. |
static void |
writeBooleanArray(java.io.ObjectOutput out,
boolean[] a)
Write an array of booleans to an ObjectOutput. |
static void |
writeIntArray(java.io.ObjectOutput out,
int[] a)
Write an array of integers to an ObjectOutput. |
static void |
writeInts(java.io.ObjectOutput out,
int[][] val)
|
static void |
writeLongArray(java.io.ObjectOutput out,
long[] a)
Write an array of longs to an ObjectOutput. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ArrayUtil
public ArrayUtil()
| Method Detail |
writeArrayLength
public static void writeArrayLength(java.io.ObjectOutput out, java.lang.Object[] a) throws java.io.IOException
- Write the length of an array of objects to an output stream.
The length
writeArrayItems
public static void writeArrayItems(java.io.ObjectOutput out, java.lang.Object[] a) throws java.io.IOException
- Write an array of objects to an output stream.
writeArray
public static void writeArray(java.io.ObjectOutput out, java.lang.Object[] a) throws java.io.IOException
- Write an array of objects and length to an output stream.
Does equivalent of writeArrayLength() followed by writeArrayItems()
readArrayItems
public static void readArrayItems(java.io.ObjectInput in, java.lang.Object[] a) throws java.io.IOException, java.lang.ClassNotFoundException
- Read an array of objects out of a stream.
readArrayLength
public static int readArrayLength(java.io.ObjectInput in) throws java.io.IOException
- Read the length of an array of objects in an object stream.
readObjectArray
public static java.lang.Object[] readObjectArray(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Reads an array of objects from the stream.
writeIntArray
public static void writeIntArray(java.io.ObjectOutput out, int[] a) throws java.io.IOException
- Write an array of integers to an ObjectOutput. This writes the array
in a format readIntArray understands.
readIntArray
public static int[] readIntArray(java.io.ObjectInput in) throws java.io.IOException
- Read an array of integers from an ObjectInput. This allocates the
array.
writeInts
public static void writeInts(java.io.ObjectOutput out, int[][] val) throws java.io.IOException
readInts
public static int[][] readInts(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
writeLongArray
public static void writeLongArray(java.io.ObjectOutput out, long[] a) throws java.io.IOException
- Write an array of longs to an ObjectOutput. This writes the array
in a format readLongArray understands.
readLongArray
public static long[] readLongArray(java.io.ObjectInput in) throws java.io.IOException
- Read an array of integers from an ObjectInput. This allocates the
array.
readStringArray
public static java.lang.String[] readStringArray(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Read an array of strings from an ObjectInput. This allocates the
array.
writeBooleanArray
public static void writeBooleanArray(java.io.ObjectOutput out, boolean[] a) throws java.io.IOException
- Write an array of booleans to an ObjectOutput. This writes the array
in a format readBooleanArray understands.
readBooleanArray
public static boolean[] readBooleanArray(java.io.ObjectInput in) throws java.io.IOException
- Read an array of integers from an ObjectInput. This allocates the
array.
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.services.io.ArrayUtil