public class GzipDecodingResource extends Resource
| Constructor and Description |
|---|
GzipDecodingResource(Resource source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,String> |
getHttpHeaders()
Assumes an HTTP response - return the HTTP headers, not including the
HTTP Message header
|
long |
getRecordLength() |
String |
getRefersToDate()
return
WARC-Refers-To-Date WARC record header value or
equivalent. |
String |
getRefersToTargetURI()
return
WARC-Refer-To-Target-URI WARC record header value or
equivalent. |
int |
getStatusCode()
Assumes an HTTP resource - return the HTTP response code
|
available, getHeader, mark, markSupported, parseHeaders, read, read, read, reset, setChunkedEncoding, setInputStream, skippublic static final String GZIP
public GzipDecodingResource(Resource source)
public long getRecordLength()
getRecordLength in class Resourcepublic Map<String,String> getHttpHeaders()
ResourcegetHttpHeaders in class Resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ResourceIOExceptionpublic int getStatusCode()
ResourcegetStatusCode in class Resourcepublic String getRefersToTargetURI()
ResourceWARC-Refer-To-Target-URI WARC record header value or
equivalent.
Default implementation returns null.getRefersToTargetURI in class Resourcepublic String getRefersToDate()
ResourceWARC-Refers-To-Date WARC record header value or
equivalent.
Default implementation returns nullgetRefersToDate in class ResourceyyyyMMddHHmmss)Copyright © 2005–2015 IIPC. All rights reserved.