aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java')
-rw-r--r--libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java b/libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java
new file mode 100644
index 000000000..be11e9fb6
--- /dev/null
+++ b/libraries/spongycastle/core/src/main/j2me/java/io/FilterInputStream.java
@@ -0,0 +1,56 @@
+package java.io;
+
+public class FilterInputStream extends InputStream
+{
+ protected InputStream in;
+
+ protected FilterInputStream(InputStream underlying)
+ {
+ in = underlying;
+ }
+
+ public int read() throws IOException
+ {
+ return in.read();
+ }
+
+ public int read(byte[] b) throws IOException
+ {
+ return read(b, 0, b.length);
+ }
+
+ public int read(byte[] b, int offset, int length) throws IOException
+ {
+ return in.read(b, offset, length);
+ }
+
+ public long skip(long n) throws IOException
+ {
+ return in.skip(n);
+ }
+
+ public int available() throws IOException
+ {
+ return in.available();
+ }
+
+ public void close() throws IOException
+ {
+ in.close();
+ }
+
+ public void mark(int readlimit)
+ {
+ in.mark(readlimit);
+ }
+
+ public void reset() throws IOException
+ {
+ in.reset();
+ }
+
+ public boolean markSupported()
+ {
+ return in.markSupported();
+ }
+}