Class BasicUsageExamples

java.lang.Object
com.streamconverter.examples.docs.BasicUsageExamples

public class BasicUsageExamples extends Object
Verifiable code examples for StreamConverter documentation.

This class contains actual, compilable, and runnable code examples that are referenced from documentation. Each example is marked with START/END comments for potential extraction into documentation.

All examples in this file are tested to ensure they compile and execute correctly.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Character encoding conversion pipeline example - demonstrates charset conversion in a pipeline.
    void
    CSV filter pipeline example - demonstrates column extraction in a pipeline.
    void
    CSV navigation pipeline example - demonstrates pipeline structure with CSV column navigation.
    void
    Error handling pipeline example - demonstrates CommandResult usage for error detection.
    void
    JSON navigation pipeline example - demonstrates pipeline structure with JSON path navigation.
    void
    Line ending normalization pipeline example - demonstrates line ending conversion in a pipeline.
    void
    Simple pipeline example - chaining multiple commands.
    void
    XML navigation pipeline example - demonstrates pipeline structure with XML path navigation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • csvNavigateBasic

      public void csvNavigateBasic() throws Exception
      CSV navigation pipeline example - demonstrates pipeline structure with CSV column navigation. Note: Uses PassThroughRule (no transformation) and SampleStreamCommand (placeholder for actual processing).
      Throws:
      Exception
    • csvFilterBasic

      public void csvFilterBasic() throws Exception
      CSV filter pipeline example - demonstrates column extraction in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.
      Throws:
      Exception
    • jsonNavigateBasic

      public void jsonNavigateBasic() throws Exception
      JSON navigation pipeline example - demonstrates pipeline structure with JSON path navigation. Note: Uses PassThroughRule (no transformation) and SampleStreamCommand (placeholder for actual processing).
      Throws:
      Exception
    • xmlNavigateBasic

      public void xmlNavigateBasic() throws Exception
      XML navigation pipeline example - demonstrates pipeline structure with XML path navigation. Note: Uses PassThroughRule (no transformation) and SampleStreamCommand (placeholder for actual processing).
      Throws:
      Exception
    • characterConvertBasic

      public void characterConvertBasic() throws Exception
      Character encoding conversion pipeline example - demonstrates charset conversion in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.
      Throws:
      Exception
    • lineEndingNormalizeBasic

      public void lineEndingNormalizeBasic() throws Exception
      Line ending normalization pipeline example - demonstrates line ending conversion in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.
      Throws:
      Exception
    • simplePipeline

      public void simplePipeline() throws Exception
      Simple pipeline example - chaining multiple commands.
      Throws:
      Exception
    • errorHandlingBasic

      public void errorHandlingBasic() throws Exception
      Error handling pipeline example - demonstrates CommandResult usage for error detection. Note: SampleStreamCommand is a placeholder for actual processing logic.
      Throws:
      Exception