org.archive.wayback.resourcestore.resourcefile
Class WarcResource
java.lang.Object
java.io.InputStream
org.archive.wayback.core.Resource
org.archive.wayback.resourcestore.resourcefile.WarcResource
- All Implemented Interfaces:
- java.io.Closeable
public class WarcResource
- extends Resource
|
Constructor Summary |
WarcResource(org.archive.io.warc.WARCRecord rec,
org.archive.io.warc.WARCReader reader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WarcResource
public WarcResource(org.archive.io.warc.WARCRecord rec,
org.archive.io.warc.WARCReader reader)
parseHeaders
public void parseHeaders()
throws java.io.IOException
- Throws:
java.io.IOException
getHttpHeaders
public java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
- Specified by:
getHttpHeaders in class Resource
getRecordLength
public long getRecordLength()
- Specified by:
getRecordLength in class Resource
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode in class Resource
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Specified by:
close in class Resource
- Throws:
java.io.IOException
Copyright © 2005-2009 Internet Archive. All Rights Reserved.