BrightSide Workbench Full Report + Source Code
org.turro.plugin.GenericObject Class Reference
Inheritance diagram for org.turro.plugin.GenericObject:
Collaboration diagram for org.turro.plugin.GenericObject:

Public Member Functions

Serializable getObject ()
 
void setObject (Serializable object)
 
void bytesToObject (byte[] buf)
 
byte[] objectToBytes ()
 
Serializable getObject ()
 
void setObject (Serializable object)
 
void bytesToObject (byte[] buf)
 
byte[] objectToBytes ()
 

Detailed Description

Member Function Documentation

◆ bytesToObject() [1/2]

void org.turro.plugin.GenericObject.bytesToObject ( byte[]  buf)

Definition at line 45 of file elephant-plugins/src/main/java/org/turro/plugin/GenericObject.java.

45  {
46  try{
47  object = (Serializable) new ObjectInputStream(new ByteArrayInputStream(buf)).readObject();
48  } catch (IOException e) {
49  Logger.getLogger(GenericObject.class.getName()).log(Level.SEVERE, null, e);
50  } catch (ClassNotFoundException ex) {
51  Logger.getLogger(GenericObject.class.getName()).log(Level.SEVERE, null, ex);
52  }
53  }

◆ bytesToObject() [2/2]

void org.turro.plugin.GenericObject.bytesToObject ( byte[]  buf)

Definition at line 46 of file elephant/src/main/java/org/turro/plugin/GenericObject.java.

46  {
47  try{
48  object = (Serializable) new ObjectInputStream(new ByteArrayInputStream(buf)).readObject();
49  } catch (IOException | ClassNotFoundException e) {
50  Logger.getLogger(GenericObject.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), e);
51  }
52  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getObject() [1/2]

Serializable org.turro.plugin.GenericObject.getObject ( )

Definition at line 37 of file elephant-plugins/src/main/java/org/turro/plugin/GenericObject.java.

37  {
38  return object;
39  }

◆ getObject() [2/2]

Serializable org.turro.plugin.GenericObject.getObject ( )

Definition at line 38 of file elephant/src/main/java/org/turro/plugin/GenericObject.java.

38  {
39  return object;
40  }
Here is the caller graph for this function:

◆ objectToBytes() [1/2]

byte [] org.turro.plugin.GenericObject.objectToBytes ( )

Definition at line 55 of file elephant-plugins/src/main/java/org/turro/plugin/GenericObject.java.

55  {
56  try{
57  ByteArrayOutputStream baos = new ByteArrayOutputStream();
58  ObjectOutputStream oos = new ObjectOutputStream(baos);
59  oos.writeObject(object);
60  baos.close();
61  return baos.toByteArray();
62  } catch (IOException e) {
63  Logger.getLogger(GenericObject.class.getName()).log(Level.SEVERE, null, e);
64  }
65  return null;
66  }

◆ objectToBytes() [2/2]

byte [] org.turro.plugin.GenericObject.objectToBytes ( )

Definition at line 54 of file elephant/src/main/java/org/turro/plugin/GenericObject.java.

54  {
55  try{
56  ByteArrayOutputStream baos = new ByteArrayOutputStream();
57  ObjectOutputStream oos = new ObjectOutputStream(baos);
58  oos.writeObject(object);
59  baos.close();
60  return baos.toByteArray();
61  } catch (IOException e) {
62  Logger.getLogger(GenericObject.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), e);
63  }
64  return null;
65  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setObject() [1/2]

void org.turro.plugin.GenericObject.setObject ( Serializable  object)

Definition at line 41 of file elephant-plugins/src/main/java/org/turro/plugin/GenericObject.java.

41  {
42  this.object = object;
43  }

◆ setObject() [2/2]

void org.turro.plugin.GenericObject.setObject ( Serializable  object)

Definition at line 42 of file elephant/src/main/java/org/turro/plugin/GenericObject.java.

42  {
43  this.object = object;
44  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: