Package org.h2.tools

Class ZeroBytesEOFInputStream

java.lang.Object
java.io.InputStream
org.h2.tools.ZeroBytesEOFInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ZeroBytesEOFInputStream extends InputStream
A wrapper InputStream that works around the issue where some compressed streams (like Kanzi CompressedInputStream) may return 0 bytes instead of -1 for EOF, causing StreamDecoder to throw "Underlying input stream returned zero bytes".