|
|
@@ -2,7 +2,7 @@ package org.cobbzilla.util.io; |
|
|
|
|
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
public class NullInputStream extends InputStream { |
|
|
|
public class NullInputStream extends InputStream implements FixedSizeInputStream { |
|
|
|
|
|
|
|
public static final NullInputStream instance = new NullInputStream(); |
|
|
|
|
|
|
@@ -10,4 +10,6 @@ public class NullInputStream extends InputStream { |
|
|
|
@Override public int read(byte[] b) { return -1; } |
|
|
|
@Override public int read(byte[] b, int off, int len) { return -1; } |
|
|
|
|
|
|
|
@Override public long getSize() { return 0; } |
|
|
|
|
|
|
|
} |