All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognitect.transit.impl.Emitter Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.371
Show newest version
// 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy