EmptyInputStream
@Deprecated public final class EmptyInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
static EmptyInputStream |
INSTANCE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Deprecated.
Returns
0 . |
void |
close()
Deprecated.
Noop.
|
void |
mark(int readLimit)
Deprecated.
Noop.
|
boolean |
markSupported()
Deprecated.
Returns
true . |
int |
read()
Deprecated.
Returns
-1 . |
int |
read(byte[] buf)
Deprecated.
Returns
-1 . |
int |
read(byte[] buf,
int off,
int len)
Deprecated.
Returns
-1 . |
void |
reset()
Deprecated.
Noop.
|
long |
skip(long n)
Deprecated.
Returns
0 . |
public static final EmptyInputStream INSTANCE
public int available()
0
.available
in class InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
true
.markSupported
in class InputStream
public int read()
-1
.read
in class InputStream
public int read(byte[] buf)
-1
.read
in class InputStream
public int read(byte[] buf, int off, int len)
-1
.read
in class InputStream
public void reset()
reset
in class InputStream
public long skip(long n)
0
.skip
in class InputStream
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.