Package ghidra.util
Class ObjectStorageStreamAdapter
- java.lang.Object
-
- ghidra.util.ObjectStorageStreamAdapter
-
- All Implemented Interfaces:
ObjectStorage
public class ObjectStorageStreamAdapter extends java.lang.Object implements ObjectStorage
Implementation for ObjectStorage to save and restore Strings and Java primitives using an ObjectOutputStream and ObjectInputStream, respectively.
-
-
Constructor Summary
Constructors Constructor Description ObjectStorageStreamAdapter(java.io.ObjectInputStream in)Constructor for new ObjectStorageStreamAdapterObjectStorageStreamAdapter(java.io.ObjectOutputStream out)Constructor for ObjectStorageStreamAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean()Gets the boolean value.bytegetByte()Gets the byte value.byte[]getBytes()Gets the byte array.doublegetDouble()Gets the double value.double[]getDoubles()Gets the double array.floatgetFloat()Gets the float value.float[]getFloats()Gets the float array.intgetInt()Gets the int value.int[]getInts()Gets the int array.longgetLong()Gets the long value.long[]getLongs()Gets the long array.shortgetShort()Gets the short value.short[]getShorts()Gets the short array.java.lang.StringgetString()Gets the String value.java.lang.String[]getStrings()Gets the array of StringsvoidputBoolean(boolean value)Store a boolean value.voidputByte(byte value)Store a byte value.voidputBytes(byte[] value)Store a byte array.voidputDouble(double value)Store a double value.voidputDoubles(double[] value)Store a double array value.voidputFloat(float value)Store a float value.voidputFloats(float[] value)Store a float array.voidputInt(int value)Store an integer value.voidputInts(int[] value)Store an integer array.voidputLong(long value)Store a long value.voidputLongs(long[] value)Store a long array.voidputShort(short value)Store a short value.voidputShorts(short[] value)Store a short array.voidputString(java.lang.String value)Store a String value.voidputStrings(java.lang.String[] value)Store a String[] value.
-
-
-
Constructor Detail
-
ObjectStorageStreamAdapter
public ObjectStorageStreamAdapter(java.io.ObjectOutputStream out)
Constructor for ObjectStorageStreamAdapter.- Parameters:
out- output stream to write to
-
ObjectStorageStreamAdapter
public ObjectStorageStreamAdapter(java.io.ObjectInputStream in)
Constructor for new ObjectStorageStreamAdapter- Parameters:
in- input stream to read from
-
-
Method Detail
-
putInt
public void putInt(int value)
Description copied from interface:ObjectStorageStore an integer value.- Specified by:
putIntin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putInt(int)
-
putByte
public void putByte(byte value)
Description copied from interface:ObjectStorageStore a byte value.- Specified by:
putBytein interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putByte(byte)
-
putShort
public void putShort(short value)
Description copied from interface:ObjectStorageStore a short value.- Specified by:
putShortin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putShort(short)
-
putLong
public void putLong(long value)
Description copied from interface:ObjectStorageStore a long value.- Specified by:
putLongin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putLong(long)
-
putString
public void putString(java.lang.String value)
Description copied from interface:ObjectStorageStore a String value.- Specified by:
putStringin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putString(String)
-
putBoolean
public void putBoolean(boolean value)
Description copied from interface:ObjectStorageStore a boolean value.- Specified by:
putBooleanin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putBoolean(boolean)
-
putFloat
public void putFloat(float value)
Description copied from interface:ObjectStorageStore a float value.- Specified by:
putFloatin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putFloat(float)
-
putDouble
public void putDouble(double value)
Description copied from interface:ObjectStorageStore a double value.- Specified by:
putDoublein interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
ObjectStorage.putDouble(double)
-
getInt
public int getInt()
Description copied from interface:ObjectStorageGets the int value.- Specified by:
getIntin interfaceObjectStorage- See Also:
ObjectStorage.getInt()
-
getByte
public byte getByte()
Description copied from interface:ObjectStorageGets the byte value.- Specified by:
getBytein interfaceObjectStorage- See Also:
ObjectStorage.getByte()
-
getShort
public short getShort()
Description copied from interface:ObjectStorageGets the short value.- Specified by:
getShortin interfaceObjectStorage- See Also:
ObjectStorage.getShort()
-
getLong
public long getLong()
Description copied from interface:ObjectStorageGets the long value.- Specified by:
getLongin interfaceObjectStorage- See Also:
ObjectStorage.getLong()
-
getBoolean
public boolean getBoolean()
Description copied from interface:ObjectStorageGets the boolean value.- Specified by:
getBooleanin interfaceObjectStorage- See Also:
ObjectStorage.getBoolean()
-
getString
public java.lang.String getString()
Description copied from interface:ObjectStorageGets the String value.- Specified by:
getStringin interfaceObjectStorage- See Also:
ObjectStorage.getString()
-
getFloat
public float getFloat()
Description copied from interface:ObjectStorageGets the float value.- Specified by:
getFloatin interfaceObjectStorage- See Also:
ObjectStorage.getFloat()
-
getDouble
public double getDouble()
Description copied from interface:ObjectStorageGets the double value.- Specified by:
getDoublein interfaceObjectStorage- See Also:
ObjectStorage.getDouble()
-
putInts
public void putInts(int[] value)
Description copied from interface:ObjectStorageStore an integer array.- Specified by:
putIntsin interfaceObjectStorage- See Also:
ObjectStorage.putInts(int[])
-
putBytes
public void putBytes(byte[] value)
Description copied from interface:ObjectStorageStore a byte array.- Specified by:
putBytesin interfaceObjectStorage- See Also:
ObjectStorage.putBytes(byte[])
-
putShorts
public void putShorts(short[] value)
Description copied from interface:ObjectStorageStore a short array.- Specified by:
putShortsin interfaceObjectStorage- See Also:
ObjectStorage.putShorts(short[])
-
putLongs
public void putLongs(long[] value)
Description copied from interface:ObjectStorageStore a long array.- Specified by:
putLongsin interfaceObjectStorage- See Also:
ObjectStorage.putLongs(long[])
-
putFloats
public void putFloats(float[] value)
Description copied from interface:ObjectStorageStore a float array.- Specified by:
putFloatsin interfaceObjectStorage- See Also:
ObjectStorage.putFloats(float[])
-
putDoubles
public void putDoubles(double[] value)
Description copied from interface:ObjectStorageStore a double array value.- Specified by:
putDoublesin interfaceObjectStorage- See Also:
ObjectStorage.putDoubles(double[])
-
putStrings
public void putStrings(java.lang.String[] value)
Description copied from interface:ObjectStorageStore a String[] value.- Specified by:
putStringsin interfaceObjectStorage- See Also:
ObjectStorage.putStrings(String[])
-
getInts
public int[] getInts()
Description copied from interface:ObjectStorageGets the int array.- Specified by:
getIntsin interfaceObjectStorage- See Also:
ObjectStorage.getInts()
-
getBytes
public byte[] getBytes()
Description copied from interface:ObjectStorageGets the byte array.- Specified by:
getBytesin interfaceObjectStorage- See Also:
ObjectStorage.getBytes()
-
getShorts
public short[] getShorts()
Description copied from interface:ObjectStorageGets the short array.- Specified by:
getShortsin interfaceObjectStorage- See Also:
ObjectStorage.getShorts()
-
getLongs
public long[] getLongs()
Description copied from interface:ObjectStorageGets the long array.- Specified by:
getLongsin interfaceObjectStorage- See Also:
ObjectStorage.getLongs()
-
getFloats
public float[] getFloats()
Description copied from interface:ObjectStorageGets the float array.- Specified by:
getFloatsin interfaceObjectStorage- See Also:
ObjectStorage.getFloats()
-
getDoubles
public double[] getDoubles()
Description copied from interface:ObjectStorageGets the double array.- Specified by:
getDoublesin interfaceObjectStorage- See Also:
ObjectStorage.getDoubles()
-
getStrings
public java.lang.String[] getStrings()
Description copied from interface:ObjectStorageGets the array of Strings- Specified by:
getStringsin interfaceObjectStorage- See Also:
ObjectStorage.getStrings()
-
-