mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Update data format to match BDF spec.
This commit is contained in:
29
briar-api/src/org/briarproject/api/data/BdfWriter.java
Normal file
29
briar-api/src/org/briarproject/api/data/BdfWriter.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package org.briarproject.api.data;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
public interface BdfWriter {
|
||||
|
||||
void flush() throws IOException;
|
||||
void close() throws IOException;
|
||||
|
||||
void addConsumer(Consumer c);
|
||||
void removeConsumer(Consumer c);
|
||||
|
||||
void writeNull() throws IOException;
|
||||
void writeBoolean(boolean b) throws IOException;
|
||||
void writeInteger(long l) throws IOException;
|
||||
void writeFloat(double d) throws IOException;
|
||||
void writeString(String s) throws IOException;
|
||||
void writeRaw(byte[] b) throws IOException;
|
||||
|
||||
void writeList(Collection<?> c) throws IOException;
|
||||
void writeListStart() throws IOException;
|
||||
void writeListEnd() throws IOException;
|
||||
|
||||
void writeDictionary(Map<?, ?> m) throws IOException;
|
||||
void writeDictionaryStart() throws IOException;
|
||||
void writeDictionaryEnd() throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user