Class StreamUtil


  • @Deprecated
    public abstract class StreamUtil
    extends java.lang.Object
    Deprecated.
    Replaced by net.cnri.util.StreamUtil
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamUtil()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static char getNonWhitespace​(java.io.Reader in)
      Deprecated.
      Read from the specified reader until a non-whitespace character is read.
      static java.lang.String readString​(java.io.Reader in)
      Deprecated.
      This function reads in a string token assuming the first qoute (") has been read already.
      static java.lang.String readUndelimitedString​(java.io.Reader in, char firstChar)
      Deprecated.
      This function reads in a string given that the string is not delimited with a quote.
      static void writeEncodedString​(java.io.Writer out, java.lang.String str)
      Deprecated.
       
      static java.lang.String XencodeString​(java.lang.String str)
      Deprecated.
      Escape all of the "special" characters in the given string and return the result.
      static void XwriteString​(java.lang.String str, java.io.Writer out)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • StreamUtil

        public StreamUtil()
        Deprecated.
    • Method Detail

      • getNonWhitespace

        public static char getNonWhitespace​(java.io.Reader in)
                                     throws java.io.IOException
        Deprecated.
        Read from the specified reader until a non-whitespace character is read. When a non-whitespace character is read, return it.
        Throws:
        java.io.IOException
      • readUndelimitedString

        public static java.lang.String readUndelimitedString​(java.io.Reader in,
                                                             char firstChar)
                                                      throws java.io.IOException
        Deprecated.
        This function reads in a string given that the string is not delimited with a quote. It will read in anything up to but not including anything that might delimit a word.
        Throws:
        java.io.IOException
      • readString

        public static java.lang.String readString​(java.io.Reader in)
                                           throws StringEncodingException,
                                                  java.io.IOException
        Deprecated.
        This function reads in a string token assuming the first qoute (") has been read already.
        Throws:
        StringEncodingException
        java.io.IOException
      • XencodeString

        public static java.lang.String XencodeString​(java.lang.String str)
        Deprecated.
        Escape all of the "special" characters in the given string and return the result.
      • writeEncodedString

        public static void writeEncodedString​(java.io.Writer out,
                                              java.lang.String str)
                                       throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • XwriteString

        public static void XwriteString​(java.lang.String str,
                                        java.io.Writer out)
                                 throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException