org.modeshape.sequencer.javafile

## Interface SourceFileRecorder

- All Known Implementing Classes:
    ClassSourceFileRecorder, JdtRecorder

      @ThreadSafe
      public interface SourceFileRecorder

  A simple interface that allows an implementer to control how Java source file metadata is mapped to properties (including primary and mixin types) in the graph.

  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.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `record(Sequencer.Context context, InputStream inputStream, long length, String encoding, Node outputNode)` Records a source file.

- - ### Method Detail

    - #### record

          void record(Sequencer.Context context,
                    InputStream inputStream,
                    long length,
                    String encoding,
                    Node outputNode)
                      throws Exception

      Records a source file.
      Parameters:
        `context` - the sequencer context (cannot be `null`)
        `inputStream` - the stream being processed (cannot be `null`)
        `length` - the length of the java file
        `encoding` - the encoding to use (can be `null`)
        `outputNode` - the `Node` output (cannot be `null`)
      Throws:
        `Exception` - if anything fails during the sequencing process

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.