Top Description Fields Constructors Methods
org.apache.tools.ant.util

public Class NullOutputStream

extends OutputStream
Class Inheritance
Imports
java.io.OutputStream

OutputStream that completely discards all data written to it.
Since
Ant 1.10.10

Field Summary

Modifier and TypeField and Description
public static NullOutputStream
INSTANCE

Shared instance which is safe to use concurrently as the stream doesn't hold any state at all.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
write(byte[]
the data.
b
)

Overrides java.io.OutputStream.write.

Doesn't do anything.
public void
write(byte[]
the data.
b
,
int
the start offset in the data.
off
,
int
the number of bytes to write.
len
)

Overrides java.io.OutputStream.write.

Doesn't do anything.
public void
write(int
the byte.
i
)

Implements abstract java.io.OutputStream.write.

Doesn't do anything.
Inherited from java.io.OutputStream:
closeflushnullOutputStream

Field Detail

INSTANCEback to summary
public static NullOutputStream INSTANCE

Shared instance which is safe to use concurrently as the stream doesn't hold any state at all.

Constructor Detail

NullOutputStreamback to summary
private NullOutputStream()

Method Detail

writeback to summary
public void write(byte[] b)

Overrides java.io.OutputStream.write.

Doesn't do anything.

Parameters
b:byte[]

Doc from java.io.OutputStream.write.

the data.

Annotations
@Override
writeback to summary
public void write(byte[] b, int off, int len)

Overrides java.io.OutputStream.write.

Doesn't do anything.

Parameters
b:byte[]

Doc from java.io.OutputStream.write.

the data.

off:int

Doc from java.io.OutputStream.write.

the start offset in the data.

len:int

Doc from java.io.OutputStream.write.

the number of bytes to write.

Annotations
@Override
writeback to summary
public void write(int i)

Implements abstract java.io.OutputStream.write.

Doesn't do anything.

Parameters
i:int

Doc from java.io.OutputStream.write.

the byte.

Annotations
@Override