JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.protocol.data

Class DataUrlDecoder



  • public class DataUrlDecoder
    extends Object 
    Helper to work with data URLs.
    Author:
    Marc Guillemot, Ronald Brill, Carsten Steul
    See Also:
    RFC2397
    • Constructor Detail

      • DataUrlDecoder

        protected DataUrlDecoder(byte[] data,
         String mediaType,
         Charset charset)
        C'tor.
        Parameters:
        data - the data
        mediaType - the media type
        charset - the charset
    • Method Detail

      • getMediaType

        public String getMediaType()
        Gets the media type information contained in the data URL.
        Returns:
        "text/plain" if the URL didn't contain any media type information
      • getCharset

        public String getCharset()
        Gets the charset information specified in the data URL.
        Returns:
        "US-ASCII" if the URL didn't contain any charset information
      • getBytes

        public byte[] getBytes()
        Gets the bytes contained in the data URL.
        Returns:
        the content
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /