Package org.apache.batik.util
Class ParsedURLDataProtocolHandler.DataParsedURLData
java.lang.Object
org.apache.batik.util.ParsedURLData
org.apache.batik.util.ParsedURLDataProtocolHandler.DataParsedURLData
- Enclosing class:
- ParsedURLDataProtocolHandler
Overrides some of the methods to support data protocol weirdness
-
Field Summary
FieldsFields inherited from class org.apache.batik.util.ParsedURLData
acceptedEncodings, contentEncoding, contentType, contentTypeCharset, contentTypeMediaType, GZIP_MAGIC, hasBeenOpened, host, HTTP_ACCEPT_ENCODING_HEADER, HTTP_ACCEPT_HEADER, HTTP_ACCEPT_LANGUAGE_HEADER, HTTP_USER_AGENT_HEADER, path, port, postConnectionURL, protocol, ref, stream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
complete()
Returns true if the URL looks well formed and complete.static InputStream
getContentEncoding
(String userAgent) Returns the content encoding if available.getContentType
(String userAgent) Returns the content type if available.Returns the URL up to and include the port number on the host.protected InputStream
openStreamInternal
(String userAgent, Iterator mimeTypes, Iterator encodingTypes) toString()
Return a string representation of the data.Methods inherited from class org.apache.batik.util.ParsedURLData
buildURL, checkGZIP, equals, extractContentTypeParts, getContentTypeCharset, getContentTypeMediaType, getPostConnectionURL, hasContentTypeParameter, hashCode, openStream, openStreamRaw, sameFile
-
Field Details
-
charset
String charset
-
-
Constructor Details
-
DataParsedURLData
DataParsedURLData()
-
-
Method Details
-
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 classParsedURLData
-
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 classParsedURLData
-
toString
Description copied from class:ParsedURLData
Return a string representation of the data.- Overrides:
toString
in classParsedURLData
-
getContentType
Returns the content type if available. This is only available for some protocols.- Overrides:
getContentType
in classParsedURLData
-
getContentEncoding
Returns the content encoding if available. This is only available for some protocols.- Overrides:
getContentEncoding
in classParsedURLData
-
openStreamInternal
protected InputStream openStreamInternal(String userAgent, Iterator mimeTypes, Iterator encodingTypes) throws IOException - Overrides:
openStreamInternal
in classParsedURLData
- Throws:
IOException
-
decode
-