public class Interchange
extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_GZIPPED
Fla indicating that files are gziped on output
|
static boolean |
IS_PACKED
Flag indicating use of Packed Cap'n Proto Serialization
|
Constructor and Description |
---|
Interchange() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static org.capnproto.MessageReader |
readInterchangeFile(String fileName,
org.capnproto.ReaderOptions readOptions)
Common method used to read Interchange files
|
static void |
writeInterchangeFile(String fileName,
org.capnproto.MessageBuilder message)
Common method to write out Interchange files
|
public static boolean IS_PACKED
public static boolean IS_GZIPPED
public static void writeInterchangeFile(String fileName, org.capnproto.MessageBuilder message) throws IOException
fileName
- Name of the output file to writemessage
- The message to write to the fileIOException
public static org.capnproto.MessageReader readInterchangeFile(String fileName, org.capnproto.ReaderOptions readOptions) throws IOException
fileName
- Name of the file to readreadOptions
- The reader optionsIOException
public static void main(String[] args) throws IOException
IOException