Class HTMLResourceFactory
java.lang.Object
org.archive.resource.html.HTMLResourceFactory
- All Implemented Interfaces:
ResourceFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected CharsetDetectorprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(InputStream is, MetaData parentMetaData, ResourceContainer container) Attempts to create a Resource from the InputStream
-
Field Details
-
CHARSET_GUESS_CHUNK_SIZE
protected static final int CHARSET_GUESS_CHUNK_SIZE- See Also:
-
HTTP_HEADER_PATH
- See Also:
-
charSetDetector
-
-
Constructor Details
-
HTMLResourceFactory
public HTMLResourceFactory()
-
-
Method Details
-
getResource
public Resource getResource(InputStream is, MetaData parentMetaData, ResourceContainer container) throws ResourceParseException, IOException Description copied from interface:ResourceFactoryAttempts to create a Resource from the InputStream- Specified by:
getResourcein interfaceResourceFactory- Throws:
ResourceParseExceptionIOException
-