An input stream wrapper that re-orders bytes according to wordsize.
An output stream wrapper that re-orders bytes according to wordsize.
An output stream wrapper that re-orders bytes according to wordsize.
Bytes sent to the wrapped output stream are re-ordered wordsize bytes at a time. For example, if 10 bytes are written and wordsize is 4, then the bytes are written to the wrapped output stream in the order 4 3 2 1 8 7 6 5 10 9. If wordsize were 2 then the bytes are written to the wrapped output stream in the order 2 1 4 3 6 5 8 7 10 9.
A LayerTransformer that re-orders bytes for the over/underlying layer.
LayerTransformerFactory for ByteSwapTransformer instances.
LayerTransformerFactory for ByteSwapTransformer instances.
Requires that layerLengthKind="explicit".
Shared functionality of all LayerTransformers.
Factory for a layer transformer.
Factory for a layer transformer.
Responsible for digesting the various args, erroring if the wrong ones are specified, and ultimately constructing the LayerTransformer of the correct type with the parameters it needs.
Doesn't enforce 998 max line length limit.
Doesn't enforce 998 max line length limit.
This is a state machine, so of course must be used only on a single thread.
For line folded, the notion of "delimited" means that the element is a "line" that ends with CRLF, except that if it is long, it will be folded, which involves inserting/removing CRLF+Space (or CRLF+TAB).
For line folded, the notion of "delimited" means that the element is a "line" that ends with CRLF, except that if it is long, it will be folded, which involves inserting/removing CRLF+Space (or CRLF+TAB). A CRLF not followed by space or tab is ALWAYS the actual "delimiter". There's no means of supplying a specific delimiter.
For line folded, the 'implicit' length kind means that the region continues to end of data.
For line folded, the 'implicit' length kind means that the region continues to end of data. At top level this would be the "whole file/stream" but this can also be used with a specified length enclosing element. This code cannot tell the difference.
Factory for ByteSwapTransformer instances with a wordsize of 4.
Transformers have factories.
Transformers have factories. This lets you find the transformer factory by the name obtained from dfdl:layerTransform.
An input stream wrapper that re-orders bytes according to wordsize.
Bytes within the wrapped input stream are re-ordered wordsize bytes at a time. For example, if the wrapped input stream contains 10 bytes and wordsize is 4, then the bytes from the wrapped input stream are returned in the order 4 3 2 1 8 7 6 5 10 9. If wordsize were 2 then the bytes from the wrapped input stream are returned in the order 2 1 4 3 6 5 8 7 10 9.