/** * Generates a BlobImpl using byte data. * * @param bytes The data to be created as a Blob. * * @return The BlobProxy instance to represent this data. */ public static Blob generateProxy(byte[] bytes) { return new BlobProxy( bytes ); }
/** * Generates a BlobImpl proxy using a given number of bytes from an InputStream. * * @param stream The input stream of bytes to be created as a Blob. * @param length The number of bytes from stream to be written to the Blob. * * @return The BlobProxy instance to represent this data. */ public static Blob generateProxy(InputStream stream, long length) { return new BlobProxy( stream, length ); }
/** * Generates a BlobImpl proxy using a given number of bytes from an InputStream. * * @param stream The input stream of bytes to be created as a Blob. * @param length The number of bytes from stream to be written to the Blob. * * @return The BlobProxy instance to represent this data. */ public static Blob generateProxy(InputStream stream, long length) { return new BlobProxy( stream, length ); }
/** * Generates a BlobImpl using byte data. * * @param bytes The data to be created as a Blob. * * @return The BlobProxy instance to represent this data. */ public static Blob generateProxy(byte[] bytes) { return new BlobProxy( bytes ); }
/** * Generates a BlobImpl proxy using byte data. * * @param bytes The data to be created as a Blob. * * @return The generated proxy. */ public static Blob generateProxy(byte[] bytes) { return ( Blob ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new BlobProxy( bytes ) ); }
/** * Generates a BlobImpl proxy using byte data. * * @param bytes The data to be created as a Blob. * * @return The generated proxy. */ public static Blob generateProxy(byte[] bytes) { return ( Blob ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new BlobProxy( bytes ) ); }
/** * Generates a BlobImpl proxy using a given number of bytes from an InputStream. * * @param stream The input stream of bytes to be created as a Blob. * @param length The number of bytes from stream to be written to the Blob. * * @return The generated proxy. */ public static Blob generateProxy(InputStream stream, long length) { return ( Blob ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new BlobProxy( stream, length ) ); }
/** * Generates a BlobImpl proxy using a given number of bytes from an InputStream. * * @param stream The input stream of bytes to be created as a Blob. * @param length The number of bytes from stream to be written to the Blob. * * @return The generated proxy. */ public static Blob generateProxy(InputStream stream, long length) { return ( Blob ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new BlobProxy( stream, length ) ); }