|
Joram 5.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.stream.StreamUtil
public final class StreamUtil
Field Summary | |
---|---|
static int |
FALSE
|
static int |
TRUE
|
Constructor Summary | |
---|---|
StreamUtil()
|
Method Summary | |
---|---|
static boolean[] |
readArrayOfBooleanFrom(java.io.InputStream is)
This method allows to restore a boolean array from the input stream. |
static int[] |
readArrayOfIntFrom(java.io.InputStream is)
This method allows to restore a int array from the input stream. |
static java.lang.String[] |
readArrayOfStringFrom(java.io.InputStream is)
This method allows to restore a String array from the input stream. |
static boolean |
readBooleanFrom(java.io.InputStream is)
This method allows to restore a boolean from the input stream. |
static byte[] |
readByteArrayFrom(java.io.InputStream is)
This method allows to restore a byte array from the input stream. |
static byte |
readByteFrom(java.io.InputStream is)
This method allows to restore a byte from the input stream. |
static double |
readDoubleFrom(java.io.InputStream is)
This method allows to restore a double from the input stream. |
static float |
readFloatFrom(java.io.InputStream is)
This method allows to restore a float from the input stream. |
static int |
readIntFrom(java.io.InputStream is)
This method allows to restore an integer from the input stream. |
static java.util.Properties |
readJPropertiesFrom(java.io.InputStream is)
This method allows to restore a java.util.Properties object from the input stream. |
static long |
readLongFrom(java.io.InputStream is)
This method allows to restore a long from the input stream. |
static java.lang.Object |
readObjectFrom(java.io.InputStream is)
This method allows to restore an object from the input stream. |
static Properties |
readPropertiesFrom(java.io.InputStream is)
This method allows to restore a Properties object from the input stream. |
static short |
readShortFrom(java.io.InputStream is)
This method allows to restore a short from the input stream. |
static java.lang.String |
readStringFrom(java.io.InputStream is)
This method allows to restore a String from the input stream. |
static java.util.Vector |
readVectorOfStringFrom(java.io.InputStream is)
This method allows to restore a vector of String objects from the input stream. |
static void |
writeArrayOfBooleanTo(boolean[] array,
java.io.OutputStream os)
This method allows to write a boolean array to the output stream. |
static void |
writeArrayOfIntTo(int[] array,
java.io.OutputStream os)
This method allows to write a int array to the output stream. |
static void |
writeArrayOfStringTo(java.lang.String[] array,
java.io.OutputStream os)
This method allows to write a String array to the output stream. |
static void |
writeObjectTo(java.lang.Object obj,
java.io.OutputStream os)
This method allows to write an object to the output stream. |
static void |
writeTo(boolean b,
java.io.OutputStream os)
This method allows to write a boolean to the output stream. |
static void |
writeTo(byte[] tab,
java.io.OutputStream os)
This method allows to write byte array to the output stream. |
static void |
writeTo(byte b,
java.io.OutputStream os)
This method allows to write a byte to the output stream. |
static void |
writeTo(double d,
java.io.OutputStream os)
This method allows to write a double to the output stream. |
static void |
writeTo(float f,
java.io.OutputStream os)
This method allows to write a float to the output stream. |
static void |
writeTo(int i,
java.io.OutputStream os)
This method allows to write an integer to the output stream. |
static void |
writeTo(long l,
java.io.OutputStream os)
This method allows to write a long to the output stream. |
static void |
writeTo(Properties p,
java.io.OutputStream os)
This method allows to write a Properties object to the output stream. |
static void |
writeTo(java.util.Properties p,
java.io.OutputStream os)
This method allows to write a java.util.Properties object to the output stream. |
static void |
writeTo(short s,
java.io.OutputStream os)
This method allows to write a short to the output stream. |
static void |
writeTo(java.lang.String str,
java.io.OutputStream os)
This method allows to write a String to the output stream. |
static void |
writeVectorOfStringTo(java.util.Vector v,
java.io.OutputStream os)
This method allows to write a vector of String objects to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRUE
public static final int FALSE
Constructor Detail |
---|
public StreamUtil()
Method Detail |
---|
public static void writeTo(boolean b, java.io.OutputStream os) throws java.io.IOException
b
- the boolean to writeos
- the stream to write the object to
java.io.IOException
public static boolean readBooleanFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(byte b, java.io.OutputStream os) throws java.io.IOException
b
- the byte to writeos
- the stream to write the object to
java.io.IOException
public static byte readByteFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(short s, java.io.OutputStream os) throws java.io.IOException
s
- the short to writeos
- the stream to write the object to
java.io.IOException
public static short readShortFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(int i, java.io.OutputStream os) throws java.io.IOException
i
- the integer to writeos
- the stream to write the object to
java.io.IOException
public static int readIntFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(long l, java.io.OutputStream os) throws java.io.IOException
l
- the long to writeos
- the stream to write the object to
java.io.IOException
public static long readLongFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(float f, java.io.OutputStream os) throws java.io.IOException
f
- the float to writeos
- the stream to write the object to
java.io.IOException
public static float readFloatFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(double d, java.io.OutputStream os) throws java.io.IOException
d
- the double to writeos
- the stream to write the object to
java.io.IOException
public static double readDoubleFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(java.lang.String str, java.io.OutputStream os) throws java.io.IOException
str
- the String to writeos
- the stream to write the object to
java.io.IOException
public static java.lang.String readStringFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(byte[] tab, java.io.OutputStream os) throws java.io.IOException
tab
- the byte array to writeos
- the stream to write the object to
java.io.IOException
public static byte[] readByteArrayFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeObjectTo(java.lang.Object obj, java.io.OutputStream os) throws java.io.IOException
obj
- the object to writeos
- the stream to write the object to
java.io.IOException
public static java.lang.Object readObjectFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeTo(Properties p, java.io.OutputStream os) throws java.io.IOException
p
- the Properties object to writeos
- the stream to write the object to
java.io.IOException
public static Properties readPropertiesFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeVectorOfStringTo(java.util.Vector v, java.io.OutputStream os) throws java.io.IOException
p
- the Properties object to writeos
- the stream to write the object to
java.io.IOException
public static java.util.Vector readVectorOfStringFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
public static void writeArrayOfStringTo(java.lang.String[] array, java.io.OutputStream os) throws java.io.IOException
array
- the String array to writeos
- the stream to write to
java.io.IOException
public static java.lang.String[] readArrayOfStringFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the String array
java.io.IOException
public static void writeArrayOfIntTo(int[] array, java.io.OutputStream os) throws java.io.IOException
array
- the int array to writeos
- the stream to write to
java.io.IOException
public static int[] readArrayOfIntFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the int array
java.io.IOException
public static void writeArrayOfBooleanTo(boolean[] array, java.io.OutputStream os) throws java.io.IOException
array
- the boolean array to writeos
- the stream to write to
java.io.IOException
public static boolean[] readArrayOfBooleanFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the boolean array
java.io.IOException
public static void writeTo(java.util.Properties p, java.io.OutputStream os) throws java.io.IOException
p
- the java.util.Properties object to writeos
- the stream to write the object to
java.io.IOException
public static java.util.Properties readJPropertiesFrom(java.io.InputStream is) throws java.io.IOException
is
- the stream to read data from in order to restore the object
java.io.IOException
|
Joram 5.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |