Edit D:\app\Administrator\product\11.2.0\dbhome_1\javavm\demo\examples\jsproc\basic\objbyvalue\Util.java
// Util.java import java.io.*; public class Util { public static byte[] serializeObject (Object obj) throws IOException { if (obj == null) return null; ByteArrayOutputStream ostream = new ByteArrayOutputStream (); ObjectOutputStream p = new ObjectOutputStream (ostream); p.writeObject (obj); p.flush (); return ostream.toByteArray (); } public static Object deserializeObject (byte[] bytes) throws IOException, ClassNotFoundException { if (bytes == null) return null; InputStream istream = new ByteArrayInputStream (bytes); return new ObjectInputStream (istream).readObject (); } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de