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
- Version:
- $Id$
-
Field Summary
FieldsFields inherited from class 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 TypeMethodDescriptionbooleancomplete()Returns true if the URL looks well formed and complete.static InputStreamgetContentEncoding(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 InputStreamopenStreamInternal(String userAgent, Iterator mimeTypes, Iterator encodingTypes) toString()Return a string representation of the data.Methods inherited from class 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:ParsedURLDataReturns 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:
completein classParsedURLData
-
getPortStr
Description copied from class:ParsedURLDataReturns the URL up to and include the port number on the host. Does not include the path or fragment pieces.- Overrides:
getPortStrin classParsedURLData
-
toString
Description copied from class:ParsedURLDataReturn a string representation of the data.- Overrides:
toStringin classParsedURLData
-
getContentType
Returns the content type if available. This is only available for some protocols.- Overrides:
getContentTypein classParsedURLData
-
getContentEncoding
Returns the content encoding if available. This is only available for some protocols.- Overrides:
getContentEncodingin classParsedURLData
-
openStreamInternal
protected InputStream openStreamInternal(String userAgent, Iterator mimeTypes, Iterator encodingTypes) throws IOException - Overrides:
openStreamInternalin classParsedURLData- Throws:
IOException
-
decode
-