| java.lang.Object java.io.InputStream java.io.ObjectInputStream java.io.EmulatedFieldsForLoading
Method Summary | |
public boolean | defaulted(String name) Return a boolean indicating if the field named name has
been assigned a value explicitly (false) or if it still holds a default
value for the type (true) because it hasn't been assigned to yet. | EmulatedFields | emulatedFields() Return the actual EmulatedFields instance used by the receiver. | public byte | get(String name, byte defaultValue) Find and return the byte value of a given field named name
in the receiver. | public char | get(String name, char defaultValue) Find and return the char value of a given field named name
in the receiver. | public double | get(String name, double defaultValue) Find and return the double value of a given field named name
in the receiver. | public float | get(String name, float defaultValue) Find and return the float value of a given field named name
in the receiver. | public int | get(String name, int defaultValue) Find and return the int value of a given field named name
in the receiver. | public long | get(String name, long defaultValue) Find and return the long value of a given field named name
in the receiver. | public Object | get(String name, Object defaultValue) Find and return the Object value of a given field named name
in the receiver. | public short | get(String name, short defaultValue) Find and return the short value of a given field named name
in the receiver. | public boolean | get(String name, boolean defaultValue) Find and return the boolean value of a given field named
name in the receiver. | public ObjectStreamClass | getObjectStreamClass() Return the class descriptor for which the emulated fields are defined. |
EmulatedFieldsForLoading | EmulatedFieldsForLoading(ObjectStreamClass streamClass)(Code) | | Constructs a new instance of EmulatedFieldsForDumping.
Parameters: streamClass - an ObjectStreamClass, defining the class for which to emulatefields. |
defaulted | public boolean defaulted(String name) throws IOException, IllegalArgumentException(Code) | | Return a boolean indicating if the field named name has
been assigned a value explicitly (false) or if it still holds a default
value for the type (true) because it hasn't been assigned to yet.
Parameters: name - A String, the name of the field to test true if the field holds it default value,false otherwise. throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
emulatedFields | EmulatedFields emulatedFields()(Code) | | Return the actual EmulatedFields instance used by the receiver. We have
the actual work in a separate class so that the code can be shared. The
receiver has to be of a subclass of GetField.
array of ObjectSlot the receiver represents. |
get | public byte get(String name, byte defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the byte value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public char get(String name, char defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the char value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public double get(String name, double defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the double value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public float get(String name, float defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the float value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public int get(String name, int defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the int value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public long get(String name, long defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the long value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public Object get(String name, Object defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the Object value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public short get(String name, short defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the short value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
get | public boolean get(String name, boolean defaultValue) throws IOException, IllegalArgumentException(Code) | | Find and return the boolean value of a given field named
name in the receiver. If the field has not been assigned
any value yet, the default value defaultValue is returned
instead.
Parameters: name - A String, the name of the field to find Parameters: defaultValue - Return value in case the field has not been assigned to yet. the value of the given field if it has been assigned, or thedefault value otherwise throws: IOException - If an IO error occurs throws: IllegalArgumentException - If the corresponding field can not be found. |
getObjectStreamClass | public ObjectStreamClass getObjectStreamClass()(Code) | | Return the class descriptor for which the emulated fields are defined.
ObjectStreamClass The class descriptor for which the emulatedfields are defined. |
Methods inherited from java.io.ObjectInputStream | public int available() throws IOException(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void defaultReadObject() throws IOException, ClassNotFoundException, NotActiveException(Code)(Java Doc) protected boolean enableResolveObject(boolean enable) throws SecurityException(Code)(Java Doc) public int read() throws IOException(Code)(Java Doc) public int read(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) public boolean readBoolean() throws IOException(Code)(Java Doc) public byte readByte() throws IOException(Code)(Java Doc) public char readChar() throws IOException(Code)(Java Doc) protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException(Code)(Java Doc) public double readDouble() throws IOException(Code)(Java Doc) public GetField readFields() throws IOException, ClassNotFoundException, NotActiveException(Code)(Java Doc) public float readFloat() throws IOException(Code)(Java Doc) public void readFully(byte[] buffer) throws IOException(Code)(Java Doc) public void readFully(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) public int readInt() throws IOException(Code)(Java Doc) public String readLine() throws IOException(Code)(Java Doc) public long readLong() throws IOException(Code)(Java Doc) final public Object readObject() throws OptionalDataException, ClassNotFoundException, IOException(Code)(Java Doc) protected Object readObjectOverride() throws OptionalDataException, ClassNotFoundException, IOException(Code)(Java Doc) public short readShort() throws IOException(Code)(Java Doc) protected void readStreamHeader() throws IOException, StreamCorruptedException(Code)(Java Doc) public String readUTF() throws IOException(Code)(Java Doc) public Object readUnshared() throws IOException, ClassNotFoundException(Code)(Java Doc) public int readUnsignedByte() throws IOException(Code)(Java Doc) public int readUnsignedShort() throws IOException(Code)(Java Doc) public synchronized void registerValidation(ObjectInputValidation object, int priority) throws NotActiveException, InvalidObjectException(Code)(Java Doc) protected Class> resolveClass(ObjectStreamClass osClass) throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object resolveObject(Object object) throws IOException(Code)(Java Doc) protected Class> resolveProxyClass(String[] interfaceNames) throws IOException, ClassNotFoundException(Code)(Java Doc) public int skipBytes(int length) throws IOException(Code)(Java Doc)
|
|
|