public class RdfSerializationExample extends Object
Constructor and Description |
---|
RdfSerializationExample() |
Modifier and Type | Method and Description |
---|---|
static OutputStream |
asynchronousOutputStream(OutputStream outputStream)
Creates a separate thread for writing into the given output stream and
returns a pipe output stream that can be used to pass data to this
thread.
|
static void |
main(String[] args) |
public static void main(String[] args) throws IOException
IOException
public static OutputStream asynchronousOutputStream(OutputStream outputStream) throws IOException
This code is inspired by http://stackoverflow.com/questions/12532073/gzipoutputstream -that-does-its-compression-in-a-separate-thread
outputStream
- the stream to write to in the threadIOException
- if the pipes could not be created for some reasonCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage