Package org.codehaus.plexus.util.io
Class CachingWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.OutputStreamWriter
-
- org.codehaus.plexus.util.io.CachingWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
public class CachingWriter extends java.io.OutputStreamWriter
Caching Writer to avoid overwriting a file with the same content.
-
-
Constructor Summary
Constructors Constructor Description CachingWriter(java.io.File path, java.nio.charset.Charset charset)
CachingWriter(java.nio.file.Path path, java.nio.charset.Charset charset)
CachingWriter(java.nio.file.Path path, java.nio.charset.Charset charset, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isModified()
-
-
-
Constructor Detail
-
CachingWriter
public CachingWriter(java.io.File path, java.nio.charset.Charset charset) throws java.io.IOException
- Throws:
java.io.IOException
-
CachingWriter
public CachingWriter(java.nio.file.Path path, java.nio.charset.Charset charset) throws java.io.IOException
- Throws:
java.io.IOException
-
CachingWriter
public CachingWriter(java.nio.file.Path path, java.nio.charset.Charset charset, int bufferSize) throws java.io.IOException
- Throws:
java.io.IOException
-
-