| org.archive.util.TmpDirTestCase org.archive.io.warc.v10.ExperimentalWARCWriterTest
ExperimentalWARCWriterTest | public class ExperimentalWARCWriterTest extends TmpDirTestCase implements WARCConstants(Code) | | Test Writer and Reader.
author: stack version: $Date: 2006-08-29 19:35:48 -0700 (Tue, 29 Aug 2006) $ $Version$ |
Method Summary | |
public static File | createWARCFile(File arcdir, boolean compress) Write an arc file for other tests to use.
Parameters: arcdir - Directory to write to. Parameters: compress - True if file should be compressed. | protected ExperimentalWARCWriter | createWARCWriter(String NAME, boolean compress) | protected ExperimentalWARCWriter | createWithOneRecord(String name, boolean compressed) | protected static ByteArrayOutputStream | getBaos(String str) | protected static String | getContent() | protected static String | getContent(String indexStr) | protected void | holeyUrl(String name, boolean compress, String urlInsert) | protected int | iterateRecords(WARCReader r) | public void | testArcRecordOffsetReads() | public void | testCheckHeaderLineValue() | public void | testMimetypes() | public void | testRandomAccess() | public void | testSpaceInURL() | public void | testTabInURL() | public void | testWriteRecord() | public void | testWriteRecordCompressed() | public void | testWriteRecords() | protected void | writeBasicRecords(ExperimentalWARCWriter writer) | protected int | writeRandomHTTPRecord(ExperimentalWARCWriter w, int index) Write random HTML Record.
Parameters: w - Where to write. Parameters: index - An index to put into content. | protected static void | writeRecord(ExperimentalWARCWriter w, String url, String mimetype, int len, ByteArrayOutputStream baos) |
createWARCFile | public static File createWARCFile(File arcdir, boolean compress) throws IOException(Code) | | Write an arc file for other tests to use.
Parameters: arcdir - Directory to write to. Parameters: compress - True if file should be compressed. ARC written. throws: IOException - |
getContent | protected static String getContent()(Code) | | Generic HTML Content. |
getContent | protected static String getContent(String indexStr)(Code) | | Generic HTML Content with mention of passed indexStr in title and body. |
testArcRecordOffsetReads | public void testArcRecordOffsetReads() throws Exception(Code) | | |
testCheckHeaderLineValue | public void testCheckHeaderLineValue() throws Exception(Code) | | |
testSpaceInURL | public void testSpaceInURL()(Code) | | |
testTabInURL | public void testTabInURL()(Code) | | |
testWriteRecordCompressed | public void testWriteRecordCompressed() throws IOException(Code) | | |
writeRandomHTTPRecord | protected int writeRandomHTTPRecord(ExperimentalWARCWriter w, int index) throws IOException(Code) | | Write random HTML Record.
Parameters: w - Where to write. Parameters: index - An index to put into content. Length of record written. throws: IOException - |
|
|