Example usage for org.apache.commons.compress.archivers.zip ZipLong LFH_SIG

List of usage examples for org.apache.commons.compress.archivers.zip ZipLong LFH_SIG

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.zip ZipLong LFH_SIG.

Prototype

ZipLong LFH_SIG

To view the source code for org.apache.commons.compress.archivers.zip ZipLong LFH_SIG.

Click Source Link

Document

Local File Header Signature

Usage

From source file:org.dataconservancy.packaging.tool.impl.AnnotationDrivenPackageStateSerializerTest.java

@Test
public void testDeserializeEmptyArchive() throws Exception {
    PackageState state = new PackageState();
    underTest.setMarshallerMap(liveMarshallerMap);
    BufferedInputStream in = new BufferedInputStream(new ByteArrayInputStream(ZipLong.LFH_SIG.getBytes()));

    underTest.deserialize(state, in);/*from   w w  w .  ja v a2s .  co  m*/

    assertEmptyOrNullStreamsOnPackageState(state);
}