public class ProtoBufFile extends Object
| Constructor and Description |
|---|
ProtoBufFile(String path) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.google.protobuf.Message> |
load()
Load a protobuf message from file.
|
boolean |
save(com.google.protobuf.Message msg,
boolean sync)
Save a protobuf message to file.
|
public ProtoBufFile(String path)
public <T extends com.google.protobuf.Message> T load()
throws IOException
IOExceptionpublic boolean save(com.google.protobuf.Message msg,
boolean sync)
throws IOException
msg - protobuf messagesync - if sync flush data to diskIOExceptionCopyright © 2024. All rights reserved.