gausssoft.io
Interface IOConstants

All Known Implementing Classes:
IOUtils

public interface IOConstants

Collection of frequently used IO-related objects.

Author:
Allan Crooks

Field Summary
static SafeOutputStream NULLOUT
          An OutputStream which discards all data written to it.
 

Field Detail

NULLOUT

public static final SafeOutputStream NULLOUT
An OutputStream which discards all data written to it. Each write method of this OutputStream does nothing, as does the close and flush methods. This can be useful if you are forced to use an OutputStream, but do not particuarly write the data anywhere. No IOException will be thrown upon invocation on any methods, including if you close the stream and then attempt to write to it.
See Also:
OutputStream, SafeOutputStream