com.ibm.as400.access.jdbcClient

Class ClientBlob

  • java.lang.Object
    • com.ibm.as400.access.jdbcClient.ClientBlob
  • All Implemented Interfaces:
    java.io.Serializable, java.sql.Blob


    public class ClientBlob
    extends java.lang.Object
    implements java.sql.Blob, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ClientBlob(byte[] data) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void free() 
      java.io.InputStream getBinaryStream() 
      java.io.InputStream getBinaryStream(long pos, long length) 
      byte[] getBytes(long start, int length) 
      long length() 
      long position(java.sql.Blob pattern, long start) 
      long position(byte[] pattern, long start) 
      java.io.OutputStream setBinaryStream(long pos) 
      int setBytes(long pos, byte[] bytes) 
      int setBytes(long pos, byte[] bytes, int offest, int len) 
      void truncate(long len) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientBlob

        public ClientBlob(byte[] data)
    • Method Detail

      • getBinaryStream

        public java.io.InputStream getBinaryStream()
        Specified by:
        getBinaryStream in interface java.sql.Blob
      • getBinaryStream

        public java.io.InputStream getBinaryStream(long pos,
                                          long length)
        Specified by:
        getBinaryStream in interface java.sql.Blob
      • position

        public long position(byte[] pattern,
                    long start)
        Specified by:
        position in interface java.sql.Blob
      • position

        public long position(java.sql.Blob pattern,
                    long start)
        Specified by:
        position in interface java.sql.Blob
      • getBytes

        public byte[] getBytes(long start,
                      int length)
        Specified by:
        getBytes in interface java.sql.Blob
      • length

        public long length()
        Specified by:
        length in interface java.sql.Blob
      • setBytes

        public int setBytes(long pos,
                   byte[] bytes)
        Specified by:
        setBytes in interface java.sql.Blob
      • setBytes

        public int setBytes(long pos,
                   byte[] bytes,
                   int offest,
                   int len)
        Specified by:
        setBytes in interface java.sql.Blob
      • setBinaryStream

        public java.io.OutputStream setBinaryStream(long pos)
        Specified by:
        setBinaryStream in interface java.sql.Blob
      • truncate

        public void truncate(long len)
        Specified by:
        truncate in interface java.sql.Blob
      • free

        public void free()
        Specified by:
        free in interface java.sql.Blob