Sky View Café - Java

org.shetline.io
Class UTF8

java.lang.Object
  extended by org.shetline.io.UTF8

public class UTF8
extends Object


Nested Class Summary
static class UTF8.ErrorMode
           
static class UTF8.LengthMode
           
 
Field Summary
protected static int CRETURN
           
protected static int NEWLINE
           
 
Method Summary
static String read(DataInput in)
           
static String read(DataInputStream in)
           
static String read(DataInputStream in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode)
           
static String read(DataInputStream in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode, Writer errorOutput)
           
static String read(DataInput in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode)
           
static String read(DataInput in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode, Writer errorOutput)
           
static String read(InputStream in)
           
static String read(InputStream in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode)
           
static String read(InputStream in, UTF8.LengthMode lengthMode, UTF8.ErrorMode errorMode, Writer errorOutput)
           
static String readAll(DataInput in)
           
static String readAll(DataInputStream in)
           
static String readAll(InputStream in)
           
static String readLine(DataInput in)
           
static String readLine(DataInputStream in)
           
static String readLine(InputStream in)
           
static String readLong(DataInput in)
           
static String readLong(DataInputStream in)
           
static String readLong(InputStream in)
           
static String readNullTerminated(DataInput in)
           
static String readNullTerminated(DataInputStream in)
           
static String readNullTerminated(InputStream in)
           
static String readShort(DataInput in)
           
static String readShort(DataInputStream in)
           
static String readShort(InputStream in)
           
static String validate(byte[] bytes)
           
static void write(DataOutputStream out, String s)
           
static void write(DataOutputStream out, String s, UTF8.LengthMode lengthMode, boolean expandNullCharacters)
           
static void write(DataOutput out, String s)
           
static void write(DataOutput out, String s, UTF8.LengthMode lengthMode, boolean expandNullCharacters)
           
static void write(OutputStream out, String s)
           
static void write(OutputStream out, String s, UTF8.LengthMode lengthMode)
           
static void write(OutputStream out, String s, UTF8.LengthMode lengthMode, boolean expandNullCharacters)
           
static void writeBare(DataOutputStream out, String s)
           
static void writeBare(DataOutput out, String s)
           
static void writeBare(OutputStream out, String s)
           
static void writeLine(DataOutputStream out, String s)
           
static void writeLine(DataOutput out, String s)
           
static void writeLine(OutputStream out, String s)
           
static void writeLong(DataOutputStream out, String s)
           
static void writeLong(DataOutput out, String s)
           
static void writeLong(OutputStream out, String s)
           
static void writeNullTerminated(DataOutputStream out, String s)
           
static void writeNullTerminated(DataOutput out, String s)
           
static void writeNullTerminated(OutputStream out, String s)
           
static void writeShort(DataOutputStream out, String s)
           
static void writeShort(DataOutput out, String s)
           
static void writeShort(OutputStream out, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

protected static final int NEWLINE
See Also:
Constant Field Values

CRETURN

protected static final int CRETURN
See Also:
Constant Field Values
Method Detail

readShort

public static String readShort(InputStream in)
                        throws IOException
Throws:
IOException

readShort

public static String readShort(DataInputStream in)
                        throws IOException
Throws:
IOException

readShort

public static String readShort(DataInput in)
                        throws IOException
Throws:
IOException

read

public static String read(InputStream in)
                   throws IOException
Throws:
IOException

read

public static String read(DataInputStream in)
                   throws IOException
Throws:
IOException

read

public static String read(DataInput in)
                   throws IOException
Throws:
IOException

readLong

public static String readLong(InputStream in)
                       throws IOException
Throws:
IOException

readLong

public static String readLong(DataInputStream in)
                       throws IOException
Throws:
IOException

readLong

public static String readLong(DataInput in)
                       throws IOException
Throws:
IOException

readLine

public static String readLine(InputStream in)
                       throws IOException
Throws:
IOException

readLine

public static String readLine(DataInputStream in)
                       throws IOException
Throws:
IOException

readLine

public static String readLine(DataInput in)
                       throws IOException
Throws:
IOException

readNullTerminated

public static String readNullTerminated(InputStream in)
                                 throws IOException
Throws:
IOException

readNullTerminated

public static String readNullTerminated(DataInputStream in)
                                 throws IOException
Throws:
IOException

readNullTerminated

public static String readNullTerminated(DataInput in)
                                 throws IOException
Throws:
IOException

readAll

public static String readAll(InputStream in)
                      throws IOException
Throws:
IOException

readAll

public static String readAll(DataInputStream in)
                      throws IOException
Throws:
IOException

readAll

public static String readAll(DataInput in)
                      throws IOException
Throws:
IOException

read

public static String read(InputStream in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode)
                   throws IOException
Throws:
IOException

read

public static String read(DataInputStream in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode)
                   throws IOException
Throws:
IOException

read

public static String read(DataInput in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode)
                   throws IOException
Throws:
IOException

read

public static String read(InputStream in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode,
                          Writer errorOutput)
                   throws IOException
Throws:
IOException

read

public static String read(DataInputStream in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode,
                          Writer errorOutput)
                   throws IOException
Throws:
IOException

read

public static String read(DataInput in,
                          UTF8.LengthMode lengthMode,
                          UTF8.ErrorMode errorMode,
                          Writer errorOutput)
                   throws IOException
Throws:
IOException

writeShort

public static void writeShort(OutputStream out,
                              String s)
                       throws IOException
Throws:
IOException

writeShort

public static void writeShort(DataOutputStream out,
                              String s)
                       throws IOException
Throws:
IOException

writeShort

public static void writeShort(DataOutput out,
                              String s)
                       throws IOException
Throws:
IOException

write

public static void write(OutputStream out,
                         String s)
                  throws IOException
Throws:
IOException

write

public static void write(DataOutputStream out,
                         String s)
                  throws IOException
Throws:
IOException

write

public static void write(DataOutput out,
                         String s)
                  throws IOException
Throws:
IOException

writeLong

public static void writeLong(OutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeLong

public static void writeLong(DataOutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeLong

public static void writeLong(DataOutput out,
                             String s)
                      throws IOException
Throws:
IOException

writeLine

public static void writeLine(OutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeLine

public static void writeLine(DataOutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeLine

public static void writeLine(DataOutput out,
                             String s)
                      throws IOException
Throws:
IOException

writeNullTerminated

public static void writeNullTerminated(OutputStream out,
                                       String s)
                                throws IOException
Throws:
IOException

writeNullTerminated

public static void writeNullTerminated(DataOutputStream out,
                                       String s)
                                throws IOException
Throws:
IOException

writeNullTerminated

public static void writeNullTerminated(DataOutput out,
                                       String s)
                                throws IOException
Throws:
IOException

writeBare

public static void writeBare(OutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeBare

public static void writeBare(DataOutputStream out,
                             String s)
                      throws IOException
Throws:
IOException

writeBare

public static void writeBare(DataOutput out,
                             String s)
                      throws IOException
Throws:
IOException

write

public static void write(OutputStream out,
                         String s,
                         UTF8.LengthMode lengthMode)
                  throws IOException
Throws:
IOException

write

public static void write(OutputStream out,
                         String s,
                         UTF8.LengthMode lengthMode,
                         boolean expandNullCharacters)
                  throws IOException
Throws:
IOException

write

public static void write(DataOutputStream out,
                         String s,
                         UTF8.LengthMode lengthMode,
                         boolean expandNullCharacters)
                  throws IOException
Throws:
IOException

write

public static void write(DataOutput out,
                         String s,
                         UTF8.LengthMode lengthMode,
                         boolean expandNullCharacters)
                  throws IOException
Throws:
IOException

validate

public static String validate(byte[] bytes)

Sky View Café - Java