org.archive.wayback.resourcestore.resourcefile
Class WarcResource

java.lang.Object
  extended by java.io.InputStream
      extended by org.archive.wayback.core.Resource
          extended by 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)
           
 
Method Summary
 void close()
           
 java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
           
 long getRecordLength()
           
 int getStatusCode()
           
 void parseHeaders()
           
 
Methods inherited from class org.archive.wayback.core.Resource
available, mark, markSupported, read, read, read, reset, setInputStream, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarcResource

public WarcResource(org.archive.io.warc.WARCRecord rec,
                    org.archive.io.warc.WARCReader reader)
Method Detail

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.