Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class FindReplaceWriter extends Writer
| Constructor and Description |
|---|
FindReplaceWriter(Writer out,
char[] find,
char[] replace) |
FindReplaceWriter(Writer out,
String find,
String replace) |
| Modifier and Type | Method and Description |
|---|---|
FindReplaceWriter |
append(char c) |
FindReplaceWriter |
append(CharSequence csq) |
FindReplaceWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
public FindReplaceWriter(Writer out, char[] find, char[] replace)
out - The writer that will receive the converted stream.find - The text to find. No defensive copy is made. Do not modify after giving to this writer.replace - The text to replace. No defensive copy is made. Do not modify after giving to this writer.public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic FindReplaceWriter append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic FindReplaceWriter append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic FindReplaceWriter append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.