Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626515
LoadObject.java
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
555 B
Referenced Files
None
Subscribers
None
LoadObject.java
View Options
package
reflection
;
import
java.beans.*
;
import
java.io.FileInputStream
;
/**
* Example how to load objects with a framework that is based on reflection.
* @author Jens Dietrich
* @version 1.0
*/
public
class
LoadObject
{
/**
* Executable main method.
* @param runetime parameters
*/
public
static
void
main
(
String
[]
args
)
throws
Exception
{
XMLDecoder
decoder
=
new
XMLDecoder
(
new
FileInputStream
(
"student.xml"
));
Object
obj
=
decoder
.
readObject
();
decoder
.
close
();
InspectObject
.
inspect
(
obj
);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 12:49 AM (3 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
148034
Default Alt Text
LoadObject.java (555 B)
Attached To
Mode
R21 OOP Examples
Attached
Detach File
Event Timeline