Class NoDuplicatesResourceRetriever
java.lang.Object
com.itextpdf.styledxmlparser.resolver.resource.DefaultResourceRetriever
com.itextpdf.styledxmlparser.css.parse.syntax.NoDuplicatesResourceRetriever
- All Implemented Interfaces:
IResourceRetriever
Implementation of
DefaultResourceRetriever which returns null if the URL
from getInputStreamByUrl(URL) has been already processed by the current instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputStreamByUrl(URL url) Gets the input stream with current limit on the number of bytes read, that connect with source URL for retrieving data from that connection.Methods inherited from class DefaultResourceRetriever
getByteArrayByUrl, getConnectTimeout, getReadTimeout, getResourceSizeByteLimit, setConnectTimeout, setReadTimeout, setResourceSizeByteLimit, urlFilter
-
Field Details
-
processedUrls
-
-
Constructor Details
-
NoDuplicatesResourceRetriever
NoDuplicatesResourceRetriever()Creates a newNoDuplicatesResourceRetrieverinstance.
-
-
Method Details
-
getInputStreamByUrl
Description copied from class:DefaultResourceRetrieverGets the input stream with current limit on the number of bytes read, that connect with source URL for retrieving data from that connection.- Specified by:
getInputStreamByUrlin interfaceIResourceRetriever- Overrides:
getInputStreamByUrlin classDefaultResourceRetriever- Parameters:
url- the source URL- Returns:
- the limited input stream or null if the URL was filtered
- Throws:
IOException- if any input/output issue occurs
-