mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Update data format to match BDF spec.
This commit is contained in:
48
briar-api/src/org/briarproject/api/data/BdfReader.java
Normal file
48
briar-api/src/org/briarproject/api/data/BdfReader.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package org.briarproject.api.data;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface BdfReader {
|
||||
|
||||
boolean eof() throws IOException;
|
||||
void close() throws IOException;
|
||||
|
||||
void addConsumer(Consumer c);
|
||||
void removeConsumer(Consumer c);
|
||||
|
||||
boolean hasNull() throws IOException;
|
||||
void readNull() throws IOException;
|
||||
void skipNull() throws IOException;
|
||||
|
||||
boolean hasBoolean() throws IOException;
|
||||
boolean readBoolean() throws IOException;
|
||||
void skipBoolean() throws IOException;
|
||||
|
||||
boolean hasInteger() throws IOException;
|
||||
long readInteger() throws IOException;
|
||||
void skipInteger() throws IOException;
|
||||
|
||||
boolean hasFloat() throws IOException;
|
||||
double readFloat() throws IOException;
|
||||
void skipFloat() throws IOException;
|
||||
|
||||
boolean hasString() throws IOException;
|
||||
String readString(int maxLength) throws IOException;
|
||||
void skipString() throws IOException;
|
||||
|
||||
boolean hasRaw() throws IOException;
|
||||
byte[] readRaw(int maxLength) throws IOException;
|
||||
void skipRaw() throws IOException;
|
||||
|
||||
boolean hasList() throws IOException;
|
||||
void readListStart() throws IOException;
|
||||
boolean hasListEnd() throws IOException;
|
||||
void readListEnd() throws IOException;
|
||||
void skipList() throws IOException;
|
||||
|
||||
boolean hasDictionary() throws IOException;
|
||||
void readDictionaryStart() throws IOException;
|
||||
boolean hasDictionaryEnd() throws IOException;
|
||||
void readDictionaryEnd() throws IOException;
|
||||
void skipDictionary() throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user