|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.data.transform.JPPFDataTransformFactory
public class JPPFDataTransformFactory
Factory class for data transform. The class of the actual JPPFDataTransform implementation is specified via the configuration property "jppf.data.transform.class = fully qualified class name". If the class cannot be found, or none is specified, then no transformation takes place.
| Constructor Summary | |
|---|---|
JPPFDataTransformFactory()
|
|
| Method Summary | |
|---|---|
static JPPFDataTransform |
getInstance()
Get an instance of the configured data transform. |
static byte[] |
transform(boolean normal,
byte[] data)
Transform the specified data using a new data transformation instance. |
static byte[] |
transform(boolean normal,
byte[] data,
int offset,
int len)
Transform the specified data using a new data transformation instance. |
static byte[] |
transform(boolean normal,
InputStream is)
Transform the specified data using a new data transformation instance. |
static byte[] |
transform(JPPFDataTransform transform,
boolean normal,
byte[] data)
Transform the specified data using the specified data transformation. |
static byte[] |
transform(JPPFDataTransform transform,
boolean normal,
byte[] data,
int offset,
int len)
Transform the specified data using the specified data transformation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFDataTransformFactory()
| Method Detail |
|---|
public static JPPFDataTransform getInstance()
JPPFDataTransform.
public static byte[] transform(JPPFDataTransform transform,
boolean normal,
byte[] data,
int offset,
int len)
throws Exception
transform - the data transformation to use.normal - true to wrap the data, false to unwrap it.data - the data to transform.offset - the position to start a in the data.len - the number of bytes to process, starting at the offset, in the data.
Exception - if any error occurs while transforming the data.
public static byte[] transform(JPPFDataTransform transform,
boolean normal,
byte[] data)
throws Exception
transform - the data transformation to use.normal - true to wrap the data, false to unwrap it.data - the data to transform.
Exception - if any error occurs while transforming the data.
public static byte[] transform(boolean normal,
byte[] data,
int offset,
int len)
throws Exception
normal - true to wrap the data, false to unwrap it.data - the data to transform.offset - the position to start a in the data.len - the number of bytes to process, starting at the offset, in the data.
Exception - if any error occurs while transforming the data.
Exception - if any error occurs while tranforming the data.
public static byte[] transform(boolean normal,
byte[] data)
throws Exception
normal - true to wrap the data, false to unwrap it.data - the data to transform.
Exception - if any error occurs while transforming the data.
public static byte[] transform(boolean normal,
InputStream is)
throws Exception
normal - true to wrap the data, false to unwrap it.is - the data to transform.
Exception - if any error occurs while transforming the data.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||