mirror of
https://github.com/corda/corda.git
synced 2025-06-18 15:18:16 +00:00
Additional of several interfaces which can be used in serialization
This commit is contained in:
16
classpath/java/io/Externalizable.java
Normal file
16
classpath/java/io/Externalizable.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/* Copyright (c) 2010, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.io;
|
||||||
|
|
||||||
|
public interface Externalizable {
|
||||||
|
public void readExternal(ObjectInput in);
|
||||||
|
public void writeExternal(ObjectOutput out);
|
||||||
|
}
|
21
classpath/java/io/ObjectInput.java
Normal file
21
classpath/java/io/ObjectInput.java
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/* Copyright (c) 2010, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.io;
|
||||||
|
|
||||||
|
public interface ObjectInput {
|
||||||
|
public int available();
|
||||||
|
public void close();
|
||||||
|
public void read();
|
||||||
|
public void read(byte[] b);
|
||||||
|
public void read(byte[] b, int off, int len);
|
||||||
|
public Object readObject();
|
||||||
|
public long skip(long n);
|
||||||
|
}
|
20
classpath/java/io/ObjectOutput.java
Normal file
20
classpath/java/io/ObjectOutput.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/* Copyright (c) 2010, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.io;
|
||||||
|
|
||||||
|
public interface ObjectOutput {
|
||||||
|
public void close();
|
||||||
|
public void flush();
|
||||||
|
public void write(byte[] b);
|
||||||
|
public void write(byte[] b, int off, int len);
|
||||||
|
public void write(int b);
|
||||||
|
public void writeObject(Object obj);
|
||||||
|
}
|
Reference in New Issue
Block a user