Has to implement clone method to allow of making copy of object.returnobject copy
Read resource from stream.paramin input stream to be readthrowsIOException thrown when read failed.throwsResourceException thrown when resource can't be read.
Write resource to stream.paramout output stream to write tothrowsIOException thrown when write failedthrowsResourceException thrown when resource can't be written.