Interface FormatHandler

  • All Known Implementing Classes:
    DefaultFormatHandler

    public interface FormatHandler
    A format handler knows how to handle a container-like file format and can be looked up in OSGI via an ID.
    • Method Detail

      • accepts

        boolean accepts​(byte[] data,
                        int off,
                        int len)
        Return a flag indicating whether the handler is able to handle the data.
        Parameters:
        data - data buffer
        off - offset
        len - number of valid bytes
        Returns:
        true if the handler is able to handle the data; false otherwise
      • process

        void process​(InputStream in,
                     Context context)
              throws IOException
        Process the input stream given.
        Parameters:
        in - input stream
        context - call context
        Throws:
        IOException - if an I/O error occurs