
javadoc.com.google.common.io.NullOutputStream.html Maven / Gradle / Ivy
The newest version!
NullOutputStream (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.io
Class NullOutputStream
java.lang.Object
java.io.OutputStream
com.google.common.io.NullOutputStream
@Beta
public final class NullOutputStream
- extends OutputStream
Implementation of OutputStream
that simply discards written bytes.
- Since:
- 1.0
- Author:
- Spencer Kimball
Constructor Summary | |
---|---|
NullOutputStream()
|
Method Summary | |
---|---|
void |
write(byte[] b,
int off,
int len)
Discards the specified byte array. |
void |
write(int b)
Discards the specified byte. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NullOutputStream
public NullOutputStream()
Method Detail |
---|
write
public void write(int b)
- Discards the specified byte.
- Specified by:
write
in classOutputStream
write
public void write(byte[] b, int off, int len)
- Discards the specified byte array.
- Overrides:
write
in classOutputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy