Class StreamUtil

java.lang.Object
net.handle.util.StreamUtil

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

    • StreamUtil

      public StreamUtil()
      Deprecated.
  • Method Details

    • getNonWhitespace

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

      public static String readUndelimitedString(Reader in, char firstChar) throws 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:
      IOException
    • readString

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

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

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

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