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

    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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