This repository was archived by the owner on Jan 9, 2025. It is now read-only.
Serializer with InputStream/OutputStream #623
Unanswered
lucasmogari
asked this question in
Q&A
Replies: 1 comment 6 replies
-
|
Of course, just write the bytes produced by the serializer into the stream, and vice versa. Serializer<byte[]> serializer = Serializer.Bytes();
byte[] bytes = serializer.serialize("Hello!");
try(OutputStream out = new FileOutputStream(myFile))
{
out.write(bytes);
}
catch(IOException e)
{
throw new RuntimeException(e);
} |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use serializer with InputStream and OutputStream without and intermediary byte array?
For example, read/write an instance object (not in microstream graph) to a file.
Beta Was this translation helpful? Give feedback.
All reactions