Package omero.gateway.util
Class OriginalMetadataParser
- java.lang.Object
-
- omero.gateway.util.OriginalMetadataParser
-
public class OriginalMetadataParser extends java.lang.Object
Helper class used to read the content of anOriginalMetadataResponse
.
-
-
Constructor Summary
Constructors Constructor Description OriginalMetadataParser(java.io.File file)
Creates a new instance.OriginalMetadataParser(java.lang.StringBuffer buffer)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(omero.cmd.OriginalMetadataResponse response)
Reads the content of the response and writes it to the file.void
read(omero.cmd.OriginalMetadataResponse response, java.lang.String separator)
Reads the content of the response and writes (appends) it to the file or buffer.
-
-
-
Constructor Detail
-
OriginalMetadataParser
public OriginalMetadataParser(java.io.File file)
Creates a new instance.- Parameters:
file
- The file to write the content into
-
OriginalMetadataParser
public OriginalMetadataParser(java.lang.StringBuffer buffer)
Creates a new instance.- Parameters:
buffer
- The buffer to write the content into
-
-
Method Detail
-
read
public void read(omero.cmd.OriginalMetadataResponse response) throws java.lang.Exception
Reads the content of the response and writes it to the file.- Parameters:
response
- The response to handle.- Throws:
java.lang.Exception
- The exception thrown if an error occurred while reading/writing.
-
read
public void read(omero.cmd.OriginalMetadataResponse response, java.lang.String separator) throws java.lang.Exception
Reads the content of the response and writes (appends) it to the file or buffer.- Parameters:
response
- The response to handle.separator
- Value used to separate key and value.- Throws:
java.lang.Exception
- The exception thrown if an error occurred while reading/writing.
-
-