Class HTTPParser


  • class HTTPParser
    extends java.lang.Object
    Version:
    1.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.ThreadLocal<byte[]> ourLocalReadBuffer  
    • Constructor Summary

      Constructors 
      Constructor Description
      HTTPParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.StringBuffer getCanonicalPath​(java.lang.String path, java.lang.StringBuffer target)  
      static HTTPStatus parseStatus​(java.io.InputStream is, java.lang.String charset)  
      static java.lang.String readLine​(java.io.InputStream is, java.lang.String charset)  
      private static int readPlainLine​(java.io.InputStream is)  
      • Methods inherited from class java.lang.Object

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

      • ourLocalReadBuffer

        private static java.lang.ThreadLocal<byte[]> ourLocalReadBuffer
    • Constructor Detail

      • HTTPParser

        HTTPParser()
    • Method Detail

      • parseStatus

        public static HTTPStatus parseStatus​(java.io.InputStream is,
                                             java.lang.String charset)
                                      throws java.io.IOException,
                                             java.text.ParseException
        Throws:
        java.io.IOException
        java.text.ParseException
      • readLine

        public static java.lang.String readLine​(java.io.InputStream is,
                                                java.lang.String charset)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readPlainLine

        private static int readPlainLine​(java.io.InputStream is)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getCanonicalPath

        public static java.lang.StringBuffer getCanonicalPath​(java.lang.String path,
                                                              java.lang.StringBuffer target)