Class EDIInputFactory

    • Constructor Detail

      • EDIInputFactory

        public EDIInputFactory()
    • Method Detail

      • newFactory

        public static EDIInputFactory newFactory()
        Create a new instance of the factory. This static method creates a new factory instance. Once an application has obtained a reference to an EDIInputFactory it can use the factory to configure and obtain stream instances.
        Returns:
        the factory implementation
      • createEDIStreamReader

        public abstract EDIStreamReader createEDIStreamReader​(InputStream stream,
                                                              Schema schema)
        Creates a new EDIStreamReader using the given InputStream (with default encoding) which uses the Schema for validation of the input's control structures (interchange, group, transaction). Note that a separate schema for validation of messages/transactions may be passed directly to the EDIStreamReader once the type and version of the messages is known.
        Parameters:
        stream - InputStream from which the EDI data will be read
        schema - Schema for control structure validation
        Returns:
        a new EDIStreamReader which reads from the stream
      • createEDIStreamReader

        public abstract EDIStreamReader createEDIStreamReader​(InputStream stream,
                                                              String encoding,
                                                              Schema schema)
                                                       throws EDIStreamException
        Creates a new EDIStreamReader using the given InputStream and encoding which uses the Schema for validation of the input's control structures (interchange, group, transaction). Note that a separate schema for validation of messages/transactions may be passed directly to the EDIStreamReader once the type and version of the messages is known.
        Parameters:
        stream - InputStream from which the EDI data will be read
        encoding - character encoding of the stream
        schema - Schema for control structure validation
        Returns:
        a new EDIStreamReader which reads from the stream
        Throws:
        EDIStreamException - when encoding is not supported