Class DefaultCodecProvider.UnsupportedHandler

  • All Implemented Interfaces:
    CodecHandler
    Enclosing class:
    DefaultCodecProvider

    public static class DefaultCodecProvider.UnsupportedHandler
    extends Object
    implements CodecHandler
    CodecHandler implementation which always throws UnsupportedCodecException, useful for databases with unsupported encodings.
    • Constructor Detail

      • UnsupportedHandler

        public UnsupportedHandler()
    • Method Detail

      • encodePage

        public ByteBuffer encodePage​(ByteBuffer page,
                                     int pageNumber,
                                     int pageOffset)
                              throws IOException
        Description copied from interface: CodecHandler
        Encodes the given page buffer into a new page buffer and returns it. The returned page buffer will be used immediately and discarded so that it may be re-used for subsequent page encodings.
        Specified by:
        encodePage in interface CodecHandler
        Parameters:
        page - the page to be encoded, should not be modified
        pageNumber - the page number of the given page
        pageOffset - offset within the page at which to start writing the page data
        Returns:
        the properly encoded page buffer for the given page buffer
        Throws:
        IOException - if an exception occurs during decoding