public class OscarWriter extends Object
Constructor and Description |
---|
OscarWriter(Map<String,Map<String,Map<String,String>>> data,
Map<String,Set<String>> ignoreData)
Create a new writer instance
|
Modifier and Type | Method and Description |
---|---|
void |
write(File file) |
void |
write(OutputStream targetStream)
Perform the write operation
|
static void |
writeData(Map<String,Map<String,Map<String,String>>> data,
OutputStream stream)
Write out the data as JSON encoded data
|
static void |
writeIgnoreData(Map<String,Set<String>> ignoreData,
OutputStream stream)
Write out the ignore data as JSON encoded data
|
public void write(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public void write(OutputStream targetStream) throws IOException
The stream is closed.
targetStream
- target stream to write toIOException
- if an IO error occurspublic static void writeData(Map<String,Map<String,Map<String,String>>> data, OutputStream stream) throws IOException
The stream is not closed
data
- the data to writestream
- the stream to write toIOException
public static void writeIgnoreData(Map<String,Set<String>> ignoreData, OutputStream stream) throws IOException
The stream is not closed
ignoreData
- the data to writestream
- the stream to write toIOException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.