@ThreadSafe public interface SourceFileRecorder
Implementations of this class must provide a public, no-argument constructor.
To use, supply the implementation class name to a JavaFileSequencer
object. Each instance will be reused for multiple
JavaFileSequencer.execute(javax.jcr.Property, javax.jcr.Node, org.modeshape.jcr.api.sequencer.Sequencer.Context)
sequence calls , so implementations of this interface must be thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
record(Sequencer.Context context,
InputStream inputStream,
long length,
String encoding,
Node outputNode)
Records a source file.
|
void record(Sequencer.Context context, InputStream inputStream, long length, String encoding, Node outputNode) throws Exception
context
- the sequencer context (cannot be null
)inputStream
- the stream being processed (cannot be null
)length
- the length of the java fileencoding
- the encoding to use (can be null
)outputNode
- the Node
output (cannot be null
)Exception
- if anything fails during the sequencing processCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.