Package com.infinitekind.util
Class StreamUtil
- java.lang.Object
-
- com.infinitekind.util.StreamUtil
-
public class StreamUtil extends java.lang.Object
Utility functions used to ease the parsing and encoding of StreamObjects
-
-
Constructor Summary
Constructors Constructor Description StreamUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
encodeString(java.lang.String str)
static char
getNonWhitespace(java.io.Reader in)
static java.lang.String
readString(java.io.Reader in)
static java.lang.String
readUndelimitedString(java.io.Reader in, char ch)
static void
writeString(java.lang.String str, java.io.Writer out)
-
-
-
Method Detail
-
getNonWhitespace
public static char getNonWhitespace(java.io.Reader in) throws java.io.IOException
- Throws:
java.io.IOException
-
readUndelimitedString
public static java.lang.String readUndelimitedString(java.io.Reader in, char ch) throws java.io.IOException
- Throws:
java.io.IOException
-
readString
public static java.lang.String readString(java.io.Reader in) throws StringEncodingException, java.io.IOException
- Throws:
StringEncodingException
java.io.IOException
-
encodeString
public static java.lang.String encodeString(java.lang.String str)
-
writeString
public static void writeString(java.lang.String str, java.io.Writer out) throws java.io.IOException
- Throws:
java.io.IOException
-
-