JWAT

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixed some styling based on CheckStyle. Added the first unit test.
    • -21
    • +21
    /src/org/jhove2/module/format/arc/ArcParser.java
    • -7
    • +5
    /src/org/jhove2/module/format/arc/ArcRecord.java
    • -49
    • +59
    /src/org/jhove2/module/format/arc/TestArc.java
    • binary
    /1-1-20110922131213-00000-svc-VirtualBox.arc
    • binary
    /test/resources/1-1-20110922131213-00000-svc-VirtualBox.arc
    • binary
    /4-3-20111004123336-00000-svc-VirtualBox.arc
    • binary
    /test/resources/4-3-20111004123336-00000-svc-VirtualBox.arc
    • binary
    /IAH-20080430204825-00000-blackbook.arc
    • binary
    /test/resources/IAH-20080430204825-00000-blackbook.arc
  1. … 3 more files in changeset.
Added Digest Parser. Started on header readline method.

Added some more unit tests.

    • -0
    • +40
    /src/dk/netarkivet/warclib/WarcDigest.java
    • -0
    • +144
    /test-digest-fields.warc
    • -0
    • +81
    /test-src/dk/netarkivet/warclib/TestDigestFields.java
Added an iterator based on the WARC one. Comments etc.
    • -0
    • +43
    /src/org/jhove2/module/format/arc/ArcParser.java
Fixed some more header validation.

Added some matrix checks.

Added some content-type, segment-number checks.

Changed the error types to more types and more meaningful names.

Added some more unit tests to cover most of the current functionality.

    • -6
    • +4
    /src/dk/netarkivet/warclib/TestWarc.java
    • -0
    • +88
    /src/dk/netarkivet/warclib/WarcValidationError.java
    • -0
    • +35
    /test-contenttype-continuation.warc
    • -0
    • +145
    /test-contenttype-recommended.warc
    • -0
    • +23
    /test-contenttype-warcinfo-recommended.warc
    • -0
    • +10
    /test-duplicate-concurrentto.warc
    • -0
    • +70
    /test-segment-number-continuation.warc
    • -0
    • +72
    /test-segment-number-response.warc
  1. … 3 more files in changeset.
Added detection of duplicate fields.

Finished some more unit-tests.

    • -0
    • +32
    /src/dk/netarkivet/warclib/WarcErrorType.java
    • -0
    • +13
    /test-duplicate-fields.warc
    • -0
    • +3
    /test-lonely-continuation.warc
    • -0
    • +2
    /test-lonely-monkeys.warc
    • -0
    • +12
    /test-lonely-request-response-resource-conversion.warc
    • -0
    • +3
    /test-lonely-revisit.warc
    • -0
    • +6
    /test-lonely-warcinfo-metadata.warc
    • -0
    • +20
    /test-missing-fields.warc
    • -0
    • +80
    /test-src/dk/netarkivet/warclib/TestDuplicateFields.java
    • -0
    • +75
    /test-upper-lower-case.warc
Renamed an io class because.. Well I can.
    • -14
    • +14
    /src/org/jhove2/module/format/arc/ArcParser.java
Added some unit tests.

Added some more header parsing code.

Fixed a date case error and case error in magic identifier.

    • -34
    • +44
    /src/dk/netarkivet/warclib/TestWarc.java
    • -0
    • +78
    /test-src/dk/netarkivet/warclib/TestUpperLowerCase.java
Forgot to add the unit test folder.
    • -0
    • +115
    /test-src/dk/netarkivet/warclib/TestWarcNextRecord.java
Added an iterator to the parser.

Introduced myself to junit and made 2 small tests that compare the number of records with the expected number using both the iterator and nextrecord method.

    • -0
    • +2
    /src/dk/netarkivet/warclib/TestWarc.java
Parser almost validates all fields according to specs.

Policy errors need there own class.

    • -7
    • +26
    /src/dk/netarkivet/warclib/TestWarc.java
The warc parser now parses all fields in a simplistic way.

WarcDateParser added. Other parsers were borrowed from the arc package.

    • -1
    • +23
    /src/dk/netarkivet/warclib/TestWarc.java
    • -0
    • +65
    /src/dk/netarkivet/warclib/WarcDateParser.java
Renamed DateParser to something related to Arc since the syntax is different from Warc and therefor not reusable. Unlike some of the others.
First commit.

CheckMagic and Version.

Primitive WARC field parser.

    • -0
    • +42
    /src/dk/netarkivet/warclib/TestWarc.java
    • -0
    • +139
    /src/dk/netarkivet/warclib/WarcConstants.java
    • -0
    • +34
    /src/dk/netarkivet/warclib/WarcParser.java
    • -0
    • +183
    /src/dk/netarkivet/warclib/WarcRecord.java
Added a close method to the ArcParser for good measure.
    • -0
    • +20
    /src/org/jhove2/module/format/arc/ArcParser.java
Made some more Checkstyle reported changes.

Re-added method for multistream parsing of fx. gzip compressed arc files.

    • -2
    • +19
    /src/org/jhove2/module/format/arc/ArcParser.java
    • -1
    • +1
    /src/org/jhove2/module/format/arc/ArcRecord.java
Fixed two minor issues detected by FindBugs.

Fixed some more styling reported by Checkstyle.

    • -1
    • +1
    /src/org/jhove2/module/format/arc/ArcParser.java
    • -2
    • +2
    /src/org/jhove2/module/format/arc/ArcRecord.java
Lots of minor changes based on output from checkstyle.

Inspection of code.

    • -0
    • +216
    /NetarchiveSuite_checks.xml
    • -42
    • +50
    /src/org/jhove2/module/format/arc/ArcParser.java
    • -79
    • +94
    /src/org/jhove2/module/format/arc/ArcRecord.java
  1. … 4 more files in changeset.
Some test files.
    • binary
    /1-1-20110922131213-00000-svc-VirtualBox.arc
    • binary
    /4-3-20111004123336-00000-svc-VirtualBox.arc
    • binary
    /IAH-20080430204825-00000-blackbook.arc
Re-added a minor field length test according to version.

Went back and forth concerning mark()/reset() of payload.

Moved some stuff to HttpResponse instead of here and there.

Add some debug to TestArc and also a save method to test content.

Almost done concerning the methods in ArcRecordBase.

    • -13
    • +3
    /src/org/jhove2/module/format/arc/ArcRecord.java
    • -8
    • +14
    /src/org/jhove2/module/format/arc/TestArc.java
Re-integrated parsing of http response into arc processing.

Moved to seperate class.

Needs some more cleanup.

Still missing some minor arc record validation.

    • -7
    • +28
    /src/org/jhove2/module/format/arc/ArcRecord.java
    • -11
    • +73
    /src/org/jhove2/module/format/arc/TestArc.java
First commit.

Moved some code to new classes.

Renamed some classes.

Moved alot of code around.

Rewrote many parts of the code in the process.

Recoding almost complete except processing of http response payload.

    • -0
    • +97
    /src/org/jhove2/module/format/arc/ArcConstants.java
    • -0
    • +57
    /src/org/jhove2/module/format/arc/ArcErrorType.java
    • -0
    • +95
    /src/org/jhove2/module/format/arc/ArcParser.java
    • -0
    • +82
    /src/org/jhove2/module/format/arc/ArcPayload.java
    • -0
    • +122
    /src/org/jhove2/module/format/arc/ArcRecord.java
    • -0
    • +725
    /src/org/jhove2/module/format/arc/ArcRecordBase.java
    • -0
    • +87
    /src/org/jhove2/module/format/arc/ArcValidationError.java
    • -0
    • +82
    /src/org/jhove2/module/format/arc/ArcVersion.java
    • -0
    • +297
    /src/org/jhove2/module/format/arc/ArcVersionBlock.java
    • -0
    • +112
    /src/org/jhove2/module/format/arc/ByteBoundInputStream.java
    • -0
    • +97
    /src/org/jhove2/module/format/arc/DateParser.java
    • -0
    • +91
    /src/org/jhove2/module/format/arc/FieldValidator.java
    • -0
    • +263
    /src/org/jhove2/module/format/arc/HttpResponse.java
    • -0
    • +71
    /src/org/jhove2/module/format/arc/IPAddressParser.java
    • -0
    • +149
    /src/org/jhove2/module/format/arc/StringCountingReader.java
    • -0
    • +83
    /src/org/jhove2/module/format/arc/TestArc.java