Class 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)  
      • Methods inherited from class java.lang.Object

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

      • StreamUtil

        public StreamUtil()
    • 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
      • 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