Module com.aoapps.hodgepodge
Package com.aoapps.hodgepodge.util
Class SkipCommentsFilterOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.aoapps.hodgepodge.util.SkipCommentsFilterOutputStream
- All Implemented Interfaces:
NoClose
,Closeable
,Flushable
,AutoCloseable
Skips any lines that begin with #. This is designed for the simple task
of filtering out the default comment written by
Properties.store(java.io.OutputStream, java.lang.String)
.
This class is optimized for writing Properties
files and assumes
ISO-8859-1 encoding.
Java 1.9: Writer properties files via Writer
in UTF-8 format
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SkipCommentsFilterOutputStream
-
-
Method Details
-
isNoClose
public boolean isNoClose() -
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-