Class ParsedURLDataProtocolHandler.DataParsedURLData

    • Field Detail

      • charset

        java.lang.String charset
    • Constructor Detail

      • DataParsedURLData

        DataParsedURLData()
    • Method Detail

      • complete

        public boolean complete()
        Description copied from class: ParsedURLData
        Returns true if the URL looks well formed and complete. This does not garuntee that the stream can be opened but is a good indication that things aren't totally messed up.
        Overrides:
        complete in class ParsedURLData
      • getPortStr

        public java.lang.String getPortStr()
        Description copied from class: ParsedURLData
        Returns the URL up to and include the port number on the host. Does not include the path or fragment pieces.
        Overrides:
        getPortStr in class ParsedURLData
      • toString

        public java.lang.String toString()
        Description copied from class: ParsedURLData
        Return a string representation of the data.
        Overrides:
        toString in class ParsedURLData
      • getContentType

        public java.lang.String getContentType​(java.lang.String userAgent)
        Returns the content type if available. This is only available for some protocols.
        Overrides:
        getContentType in class ParsedURLData
      • getContentEncoding

        public java.lang.String getContentEncoding​(java.lang.String userAgent)
        Returns the content encoding if available. This is only available for some protocols.
        Overrides:
        getContentEncoding in class ParsedURLData
      • openStreamInternal

        protected java.io.InputStream openStreamInternal​(java.lang.String userAgent,
                                                         java.util.Iterator mimeTypes,
                                                         java.util.Iterator encodingTypes)
                                                  throws java.io.IOException
        Overrides:
        openStreamInternal in class ParsedURLData
        Throws:
        java.io.IOException
      • decode

        public static java.io.InputStream decode​(java.lang.String s)