@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.
void record(Sequencer.Context context, InputStream inputStream, long length, String encoding, Node outputNode) throws Exception
context- the sequencer context (cannot be
inputStream- the stream being processed (cannot be
length- the length of the java file
encoding- the encoding to use (can be
Nodeoutput (cannot be
Exception- if anything fails during the sequencing process
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.