public class BlobProxy extends Object implements InvocationHandler
Blobs for non-contextual creation, including proxy creation and
handling proxy invocations.| Modifier and Type | Method and Description |
|---|---|
static Blob |
generateProxy(byte[] bytes)
Generates a BlobImpl proxy using byte data.
|
static Blob |
generateProxy(InputStream stream,
long length)
Generates a BlobImpl proxy using a given number of bytes from an InputStream.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerUnsupportedOperationException - if any methods other than Blob.length()
or Blob.getBinaryStream() are invoked.Throwablepublic static Blob generateProxy(byte[] bytes)
bytes - The data to be created as a Blob.public static Blob generateProxy(InputStream stream, long length)
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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.