public class XMLFileWriter extends Object
Constructor and Description |
---|
XMLFileWriter(FilesCollection files) |
Modifier and Type | Method and Description |
---|---|
protected void |
createHandler(OutputStream outputStream) |
protected void |
setAttribute(AttributesImpl attributes,
String key,
long value) |
protected void |
setAttribute(AttributesImpl attributes,
String key,
String value) |
byte[] |
toByteArray(boolean local) |
byte[] |
toCompressedByteArray(boolean local) |
void |
validate(boolean local) |
protected void |
validate(InputStream inputStream) |
void |
write(OutputStream out,
boolean local) |
protected void |
writeSimpleTag(String tagName,
String value) |
protected void |
writeSimpleTag(String tagName,
String value,
AttributesImpl attributes) |
protected void |
writeSimpleTags(String tagName,
Iterable<String> values) |
protected void |
writeSingle(boolean local,
AttributesImpl attr,
FileObject file,
long timestampObsolete) |
public XMLFileWriter(FilesCollection files)
public byte[] toByteArray(boolean local) throws SAXException, TransformerConfigurationException, IOException
public byte[] toCompressedByteArray(boolean local) throws SAXException, TransformerConfigurationException, IOException
public void validate(boolean local) throws SAXException, TransformerConfigurationException, IOException, ParserConfigurationException
public void write(OutputStream out, boolean local) throws SAXException, TransformerConfigurationException, IOException
protected void writeSingle(boolean local, AttributesImpl attr, FileObject file, long timestampObsolete) throws SAXException
SAXException
protected void setAttribute(AttributesImpl attributes, String key, long value)
protected void setAttribute(AttributesImpl attributes, String key, String value)
protected void writeSimpleTags(String tagName, Iterable<String> values) throws SAXException
SAXException
protected void writeSimpleTag(String tagName, String value) throws SAXException
SAXException
protected void writeSimpleTag(String tagName, String value, AttributesImpl attributes) throws SAXException
SAXException
protected void createHandler(OutputStream outputStream) throws TransformerConfigurationException
protected void validate(InputStream inputStream) throws ParserConfigurationException, SAXException, IOException
Copyright © 2014–2022 ImageJ. All rights reserved.