@ParametersAreNonnullByDefault public abstract class AbstractStreamWriter extends AbstractWriter<OutputStream>
Writer
that writes data into a OutputStream
.target
Modifier | Constructor and Description |
---|---|
protected |
AbstractStreamWriter(OutputStream stream)
Constructs a new
AbstractStreamWriter with the given stream . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
requireEndBeforeFlush()
Returns
true if this writer requires the end of the current element before flushing all features,
otherwise, all features will be flushed as soon as another feature is intercepted. |
onAttribute, onAttribute, onEndElement, onReference, onReference, onStartElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onComplete, onInitialize
protected AbstractStreamWriter(OutputStream stream)
AbstractStreamWriter
with the given stream
.stream
- the stream where to write dataprotected boolean requireEndBeforeFlush()
AbstractWriter
true
if this writer requires the end of the current element before flushing all features,
otherwise, all features will be flushed as soon as another feature is intercepted. This is typically used when
writing a structured file with streams.requireEndBeforeFlush
in class AbstractWriter<OutputStream>
true
if this writer requires the end of the current element before flushing all featuresCopyright © 2013–2019 Atlanmod. All rights reserved.