类 BlobProxy

  • 所有已实现的接口:
    Blob, BlobImplementer

    public final class BlobProxy
    extends Object
    implements Blob, BlobImplementer
    Manages aspects of representing Blob objects. In previous versions this used to be implemented by using a java.lang.reflect.Proxy to deal with incompatibilities across various JDBC versions, hence the class name, but using a real Proxy is no longer necessary. The class name could be updated to reflect this but that would break APIs, so this operation is deferred.
    作者:
    Gavin King, Steve Ebersole, Gail Badner, Sanne Grinovero
    • 方法详细资料

      • generateProxy

        public static Blob generateProxy​(byte[] bytes)
        Generates a BlobImpl using byte data.
        参数:
        bytes - The data to be created as a Blob.
        返回:
        The BlobProxy instance to represent this data.
      • generateProxy

        public static Blob generateProxy​(InputStream stream,
                                         long length)
        Generates a BlobImpl proxy using a given number of bytes from an InputStream.
        参数:
        stream - The input stream of bytes to be created as a Blob.
        length - The number of bytes from stream to be written to the Blob.
        返回:
        The BlobProxy instance to represent this data.
      • position

        public long position​(byte[] pattern,
                             long start)
        指定者:
        position 在接口中 Blob
      • position

        public long position​(Blob pattern,
                             long start)
        指定者:
        position 在接口中 Blob
      • setBytes

        public int setBytes​(long pos,
                            byte[] bytes)
        指定者:
        setBytes 在接口中 Blob
      • setBytes

        public int setBytes​(long pos,
                            byte[] bytes,
                            int offset,
                            int len)
        指定者:
        setBytes 在接口中 Blob
      • truncate

        public void truncate​(long len)
        指定者:
        truncate 在接口中 Blob
      • free

        public void free()
        指定者:
        free 在接口中 Blob