Class BasicUsageExamples
java.lang.Object
com.streamconverter.examples.docs.BasicUsageExamples
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidCharacter encoding conversion pipeline example - demonstrates charset conversion in a pipeline.voidCSV filter pipeline example - demonstrates column extraction in a pipeline.voidCSV navigation pipeline example - demonstrates pipeline structure with CSV column navigation.voidError handling pipeline example - demonstrates CommandResult usage for error detection.voidJSON navigation pipeline example - demonstrates pipeline structure with JSON path navigation.voidLine ending normalization pipeline example - demonstrates line ending conversion in a pipeline.voidSimple pipeline example - chaining multiple commands.voidXML navigation pipeline example - demonstrates pipeline structure with XML path navigation.
-
Constructor Details
-
BasicUsageExamples
public BasicUsageExamples()
-
-
Method Details
-
csvFilterBasic
CSV filter pipeline example - demonstrates column extraction in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.- Throws:
Exception
-
characterConvertBasic
Character encoding conversion pipeline example - demonstrates charset conversion in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.- Throws:
Exception
-
lineEndingNormalizeBasic
Line ending normalization pipeline example - demonstrates line ending conversion in a pipeline. Note: SampleStreamCommand is a placeholder for actual processing logic.- Throws:
Exception
-
simplePipeline
Simple pipeline example - chaining multiple commands.- Throws:
Exception
-
errorHandlingBasic
Error handling pipeline example - demonstrates CommandResult usage for error detection. Note: SampleStreamCommand is a placeholder for actual processing logic.- Throws:
Exception