|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.io.BasicStreamers
public class BasicStreamers
Code to read and write basic object types (like arrays of primitives, Integer instances,
Double instances, etc.).
| Nested Class Summary | |
|---|---|
static class |
BasicStreamers.BasicStreamer
Abstract base class for basic streamers. |
static class |
BasicStreamers.BooleanArrayStreamer
Streams arrays of booleans. |
static class |
BasicStreamers.BooleanStreamer
Streams Boolean instances. |
static class |
BasicStreamers.ByteArrayStreamer
Streams arrays of bytes. |
static class |
BasicStreamers.ByteStreamer
Streams Byte instances. |
static class |
BasicStreamers.CharacterStreamer
Streams Character instances. |
static class |
BasicStreamers.CharArrayStreamer
Streams arrays of chars. |
static class |
BasicStreamers.ClassStreamer
Streams Class instances (but only those that represent streamable classes). |
protected static class |
BasicStreamers.CollectionStreamer
A building-block class for streaming Collections. |
static class |
BasicStreamers.DoubleArrayStreamer
Streams arrays of doubles. |
static class |
BasicStreamers.DoubleStreamer
Streams Double instances. |
static class |
BasicStreamers.FloatArrayStreamer
Streams arrays of floats. |
static class |
BasicStreamers.FloatStreamer
Streams Float instances. |
static class |
BasicStreamers.IntArrayStreamer
Streams arrays of ints. |
static class |
BasicStreamers.IntegerStreamer
Streams Integer instances. |
static class |
BasicStreamers.IterableStreamer
Copy a non-Collection Iterable into a List. |
static class |
BasicStreamers.ListStreamer
Streams List instances. |
static class |
BasicStreamers.LongArrayStreamer
Streams arrays of longs. |
static class |
BasicStreamers.LongStreamer
Streams Long instances. |
static class |
BasicStreamers.MapStreamer
Streams Map instances. |
static class |
BasicStreamers.MultisetStreamer
Streams Multiset instances. |
static class |
BasicStreamers.ObjectArrayStreamer
Streams arrays of Object instances. |
static class |
BasicStreamers.SetStreamer
Streams Set instances. |
static class |
BasicStreamers.ShortArrayStreamer
Streams arrays of shorts. |
static class |
BasicStreamers.ShortStreamer
Streams Short instances. |
static class |
BasicStreamers.StringStreamer
Streams String instances, using modifiedUTF. |
static class |
BasicStreamers.UnmodifiedUTFStringStreamer
Streams String instances, without using modifiedUTF. |
| Field Summary | |
|---|---|
static Map<Class<?>,Streamer> |
BSTREAMERS
|
| Constructor Summary | |
|---|---|
BasicStreamers()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Map<Class<?>,Streamer> BSTREAMERS
| Constructor Detail |
|---|
public BasicStreamers()
| Method Detail |
|---|
public static boolean[] readBooleanArray(ObjectInputStream ins)
throws IOException
IOException
public static byte[] readByteArray(ObjectInputStream ins)
throws IOException
IOException
public static short[] readShortArray(ObjectInputStream ins)
throws IOException
IOException
public static char[] readCharArray(ObjectInputStream ins)
throws IOException
IOException
public static int[] readIntArray(ObjectInputStream ins)
throws IOException
IOException
public static long[] readLongArray(ObjectInputStream ins)
throws IOException
IOException
public static float[] readFloatArray(ObjectInputStream ins)
throws IOException
IOException
public static double[] readDoubleArray(ObjectInputStream ins)
throws IOException
IOException
public static Object[] readObjectArray(ObjectInputStream ins)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
public static void writeBooleanArray(ObjectOutputStream out,
boolean[] value)
throws IOException
IOException
public static void writeByteArray(ObjectOutputStream out,
byte[] value)
throws IOException
IOException
public static void writeCharArray(ObjectOutputStream out,
char[] value)
throws IOException
IOException
public static void writeShortArray(ObjectOutputStream out,
short[] value)
throws IOException
IOException
public static void writeIntArray(ObjectOutputStream out,
int[] value)
throws IOException
IOException
public static void writeLongArray(ObjectOutputStream out,
long[] value)
throws IOException
IOException
public static void writeFloatArray(ObjectOutputStream out,
float[] value)
throws IOException
IOException
public static void writeDoubleArray(ObjectOutputStream out,
double[] value)
throws IOException
IOException
public static void writeObjectArray(ObjectOutputStream out,
Object[] value)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||