Package org.smooks.io
Class FragmentWriter
- java.lang.Object
-
- java.io.Writer
-
- org.smooks.io.FragmentWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class FragmentWriter extends Writer
-
-
Field Summary
Fields Modifier and Type Field Description static long
RESERVED_WRITE_FRAGMENT_ID
-
Constructor Summary
Constructors Constructor Description FragmentWriter(ExecutionContext executionContext, Fragment<?> fragment)
FragmentWriter(ExecutionContext executionContext, Fragment<?> fragment, boolean tryPark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
Writer
getDelegateWriter()
ExecutionContext
getExecutionContext()
Fragment<?>
getFragment()
boolean
park()
void
unpark()
void
write(char[] cbuf, int off, int len)
-
-
-
Field Detail
-
RESERVED_WRITE_FRAGMENT_ID
public static final long RESERVED_WRITE_FRAGMENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FragmentWriter
public FragmentWriter(ExecutionContext executionContext, Fragment<?> fragment)
-
FragmentWriter
public FragmentWriter(ExecutionContext executionContext, Fragment<?> fragment, boolean tryPark)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
getDelegateWriter
public Writer getDelegateWriter()
-
park
public boolean park() throws IOException
- Throws:
IOException
-
unpark
public void unpark() throws IOException
- Throws:
IOException
-
getFragment
public Fragment<?> getFragment()
-
getExecutionContext
public ExecutionContext getExecutionContext()
-
-