Package org.joda.money
Class Ser
java.lang.Object
org.joda.money.Ser
- All Implemented Interfaces:
Externalizable
,Serializable
A package scoped class used to manage serialization efficiently.
This class is mutable and intended for use by a single thread.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate BigMoney
private CurrencyUnit
void
Outputs the data.private Object
Returns the object that will replace this one.private void
writeBigMoney
(ObjectOutput out, BigMoney obj) private void
writeCurrency
(ObjectOutput out, CurrencyUnit obj) void
Outputs the data.
-
Field Details
-
BIG_MONEY
static final byte BIG_MONEYType for BigMoney.- See Also:
-
MONEY
static final byte MONEYType for Money.- See Also:
-
CURRENCY_UNIT
static final byte CURRENCY_UNITType for CurrencyUnit.- See Also:
-
type
private byte typeThe type. -
object
The data object.
-
-
Constructor Details
-
Ser
public Ser()Constructor for serialization. -
Ser
Ser(byte type, Object object) Constructor for package.- Parameters:
type
- the typeobject
- the object
-
-
Method Details
-
writeExternal
Outputs the data.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- the output stream- Throws:
IOException
- if an error occurs
-
writeBigMoney
- Throws:
IOException
-
writeCurrency
- Throws:
IOException
-
readExternal
Outputs the data.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- the input stream- Throws:
IOException
- if an error occursClassNotFoundException
-
readBigMoney
- Throws:
IOException
-
readCurrency
- Throws:
IOException
-
readResolve
Returns the object that will replace this one.- Returns:
- the read object, should never be null
-