@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public abstract class DecoratingInputStream
extends java.io.InputStream
FilterInputStream
in the JSE, but optimized for performance and without
multithreading support.DecoratingOutputStream| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
delegate
The nullable decorated input stream.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DecoratingInputStream(java.io.InputStream in)
Constructs a new decorating input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
java.lang.String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
@Nullable protected java.io.InputStream delegate
protected DecoratingInputStream(@CheckForNull
java.io.InputStream in)
in - the input stream to wrap in this decorator.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic final int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.