com.cognitect.transit.impl.Emitter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transit-java Show documentation
Show all versions of transit-java Show documentation
Transit is a data format and a set of libraries for conveying values between applications written in different languages. This library provides support for marshalling Transit data to/from Java.
// Copyright (c) Cognitect, Inc.
// All rights reserved.
package com.cognitect.transit.impl;
import java.io.IOException;
public interface Emitter {
void emit(Object o, boolean asMapKey, WriteCache cache) throws Exception;
void emitNil(boolean asMapKey, WriteCache cache) throws Exception;
void emitString(String prefix, String tag, String s, boolean asMapKey, WriteCache cache) throws Exception;
void emitBoolean(Boolean b, boolean asMapKey, WriteCache cache) throws Exception;
void emitBoolean(boolean b, boolean asMapKey, WriteCache cache) throws Exception;
void emitInteger(Object i, boolean asMapKey, WriteCache cache) throws Exception;
void emitInteger(long i, boolean asMapKey, WriteCache cache) throws Exception;
void emitDouble(Object d, boolean asMapKey, WriteCache cache) throws Exception;
void emitDouble(float d, boolean asMapKey, WriteCache cache) throws Exception;
void emitDouble(double d, boolean asMapKey, WriteCache cache) throws Exception;
void emitBinary(Object b, boolean asMapKey, WriteCache cache) throws Exception;
void emitArrayStart(Long size) throws Exception;
void emitArrayEnd() throws Exception;
void emitMapStart(Long size) throws Exception;
void emitMapEnd() throws Exception;
boolean prefersStrings();
void flushWriter() throws IOException;
}