Class Writers.Delimited<T extends Writer>
java.lang.Object
java.io.Writer
com.end0katz.blobj.nio.Writers.Delimited<T>
- Type Parameters:
T
- the type of writer to delimit.
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
Writers
Writer modifier that takes in a writer and, after each writing operation,
writes a set delimiter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence cs) append
(CharSequence cs, int off, int len) void
close()
void
flush()
void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
writer()
Get the underlying writer for queries (seeWriters.StringWriter
) and non-delimited writing.Methods inherited from class java.io.Writer
nullWriter
-
Field Details
-
wr
-
delimiter
The delimiter.
-
-
Constructor Details
-
Delimited
Wrap writer, with" "
as the delimiter.- Parameters:
writer
- the writer to wrap.
-
Delimited
-
-
Method Details
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
writer
Get the underlying writer for queries (seeWriters.StringWriter
) and non-delimited writing.- Returns:
- the underlying writer.
-