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, skip
public static final String GZIP
public GzipDecodingResource(Resource source)
public long getRecordLength()
getRecordLength
in class Resource
public Map<String,String> getHttpHeaders()
Resource
getHttpHeaders
in class Resource
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Resource
IOException
public int getStatusCode()
Resource
getStatusCode
in class Resource
public String getRefersToTargetURI()
Resource
WARC-Refer-To-Target-URI
WARC record header value or
equivalent.
Default implementation returns null
.getRefersToTargetURI
in class Resource
public String getRefersToDate()
Resource
WARC-Refers-To-Date
WARC record header value or
equivalent.
Default implementation returns null
getRefersToDate
in class Resource
yyyyMMddHHmmss
)Copyright © 2005–2015 IIPC. All rights reserved.