mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Add the DataInput / DataOutput interfaces
These are part of the standard Java class library API. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
6f9a9fd15d
commit
2f87be954c
29
classpath/java/io/DataInput.java
Normal file
29
classpath/java/io/DataInput.java
Normal file
@ -0,0 +1,29 @@
|
||||
/* Copyright (c) 2008-2013, 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 DataInput {
|
||||
boolean readBoolean() throws IOException;
|
||||
byte readByte() throws IOException;
|
||||
char readChar() throws IOException;
|
||||
double readDouble() throws IOException;
|
||||
float readFloat() throws IOException;
|
||||
void readFully(byte[] b) throws IOException;
|
||||
void readFully(byte[] b, int off, int len) throws IOException;
|
||||
int readInt() throws IOException;
|
||||
String readLine() throws IOException;
|
||||
long readLong() throws IOException;
|
||||
short readShort() throws IOException;
|
||||
int readUnsignedByte() throws IOException;
|
||||
int readUnsignedShort() throws IOException;
|
||||
String readUTF() throws IOException;
|
||||
int skipBytes(int n) throws IOException;
|
||||
}
|
28
classpath/java/io/DataOutput.java
Normal file
28
classpath/java/io/DataOutput.java
Normal file
@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 2008-2013, 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 DataOutput {
|
||||
void write(byte[] b) throws IOException;
|
||||
void write(byte[] b, int off, int len) throws IOException;
|
||||
void write(int b) throws IOException;
|
||||
void writeBoolean(boolean v) throws IOException;
|
||||
void writeByte(int v) throws IOException;
|
||||
void writeBytes(String s) throws IOException;
|
||||
void writeChar(int v) throws IOException;
|
||||
void writeChars(String s) throws IOException;
|
||||
void writeDouble(double v) throws IOException;
|
||||
void writeFloat(float v) throws IOException;
|
||||
void writeInt(int v) throws IOException;
|
||||
void writeLong(long v) throws IOException;
|
||||
void writeShort(int v) throws IOException;
|
||||
void writeUTF(String s) throws IOException;
|
||||
}
|
Loading…
Reference in New Issue
Block a user