public class VideoXMLHandler
extends java.lang.Object
Constructor and Description |
---|
VideoXMLHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ConnectionEntry> |
parse(java.io.File file)
Parse a connection entry or list of connection entries
Works for both cases
Synchronized to prevent reading and writing at the same time
|
java.util.List<ConnectionEntry> |
parse(java.lang.String xml) |
static java.lang.String |
serialize(ConnectionEntry e,
java.lang.StringBuilder sb)
Serialize a connection entry to XML
|
static java.lang.String |
serialize(java.util.List<ConnectionEntry> entries) |
static CotDetail |
toCotDetail(ConnectionEntry ce) |
static CotEvent |
toCotEvent(ConnectionEntry ce) |
java.io.File |
write(ConnectionEntry entry,
java.io.File file)
Serialize a single connection entry to an XML file
Synchronized to prevent reading and writing at the same time
|
public java.util.List<ConnectionEntry> parse(java.io.File file)
file
- Connection entry filepublic java.util.List<ConnectionEntry> parse(java.lang.String xml)
public java.io.File write(ConnectionEntry entry, java.io.File file)
entry
- Connection entryfile
- XML filepublic static java.lang.String serialize(ConnectionEntry e, java.lang.StringBuilder sb)
e
- Connection entrysb
- String builder (null if this is a singular entry)public static java.lang.String serialize(java.util.List<ConnectionEntry> entries)
public static CotEvent toCotEvent(ConnectionEntry ce)
public static CotDetail toCotDetail(ConnectionEntry ce)