Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

Decompression causes java.io.IOException: Pipe closed #9

@dmak

Description

@dmak

I have created LZMA archive using LZMA command-line utility form Debian.

When some such LZMA files (one of them I've posted to RapidShare) the following exception occurs:

java.io.IOException: Pipe closed
    at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
    at java.io.PipedInputStream.awaitSpace(PipedInputStream.java:252)
    at java.io.PipedInputStream.receive(PipedInputStream.java:215)
    at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
    at lzma.sdk.lz.OutWindow.flush(OutWindow.java:81)
    at lzma.sdk.lz.OutWindow.copyBlock(OutWindow.java:105)
    at lzma.sdk.lzma.Decoder.code(Decoder.java:369)
    at lzma.streams.LzmaDecoderWrapper.code(LzmaDecoderWrapper.java:60)
    at org.cservenak.streams.CoderThread$1.run(CoderThread.java:46)
    at org.cservenak.streams.CoderThread.run(CoderThread.java:91)

Reading code is roughly the following:

BufferedReader r = new BufferedReader(new InputStreamReader(new LzmaInputStream(new BufferedInputStream(new FileInputStream(testFile), 500 * 1024), new Decoder())));
r.readLine(); // in cycle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions