|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.data.encoder.BasicXMLEncoder
public abstract class BasicXMLEncoder
Title:
Description:
Copyright: Copyright (c) 2003
Company:
This is a convenience encoder that will encode an XML Document. To use simply implement createDocument(). This assumes that we are dealing with a single file and won't work with multiple files.
| Constructor Summary | |
|---|---|
BasicXMLEncoder()
Create a BasicXMLEncoder with the default extension of xml. |
|
BasicXMLEncoder(String extension)
Create a BasicXMLEncoder with the specified extension. |
|
| Method Summary | |
|---|---|
abstract Document |
createDocument(Document document,
String directory,
String name,
Data data)
Create an XML document that will be encoded into a byte[]. |
void |
encode(String directory,
String name,
Data data,
OutputStream[] streams,
Set<Tag> metadata)
Create a byte[] that represents an XML document. |
String[] |
getExtensions()
|
int |
getNumberOfFiles()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.Encoder |
|---|
getEncodableData |
| Constructor Detail |
|---|
public BasicXMLEncoder()
public BasicXMLEncoder(String extension)
extension - | Method Detail |
|---|
public void encode(String directory,
String name,
Data data,
OutputStream[] streams,
Set<Tag> metadata)
throws IOException
encode in interface Encoderdirectory - name - data - metadata - TODO
IOException
public abstract Document createDocument(Document document,
String directory,
String name,
Data data)
document - A blank document to build off of.directory - The directory in which the file will be saved in case is needed to encode information.name - The filename to save the file as, in case it is needed to encode information.data - The data to encode
public final int getNumberOfFiles()
getNumberOfFiles in interface Encoderpublic final String[] getExtensions()
getExtensions in interface Encoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||