java.lang.Object
java.io.Writer
com.semanticcms.core.model.NodeBodyWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Writes node body content, while replacing nested child element markers with
child element content.
TODO: Performance: It may be faster to deal with strings and char[] instead of sending everything through as single characters.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
void
write
(char[] cbuf, int off, int len) void
write
(int c) static void
writeElementMarker
(long elementKey, Appendable out)
-
Constructor Details
-
NodeBodyWriter
-
-
Method Details
-
writeElementMarker
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-