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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()voidwrite(char[] cbuf, int off, int len) voidwrite(int c) static voidwriteElementMarker(long elementKey, Appendable out)
-
Constructor Details
-
NodeBodyWriter
-
-
Method Details
-
writeElementMarker
- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
