I have the following code:
new Thread(new ReadDeferred(writer, (OMElement)
returnData.createRawDataOutputFromTable(doc,
inputDatasetId,
outputDatasetId, type, false)
)).start();
;
writer.close();
class ReadDeferred
implements Runnable
{
Writer writer = null;
OMElement topElement = null;
public ReadDeferred(Writer writer, OMElement topElement)
{
this.writer = writer;
this.topElement = topElement;
}
public void run()
{
try
{
topElement.serializeAndConsume(writer);
}
catch (Exception ex)
{
InitializationServlet.error("", ex);
}
}
}
I am trying to flush the output of createRawDataOutputFromTable directly
to a file without creating a dom tree. The createRawDataOutputFromTable
method builds an OMDocument using a series of append child statements.
The above code still holds the whole dom tree in memory before it writes
to a file. Is there a way I can prevent this? I essentially want every
appendChild to write the child to the file.
Tammy
--
Tammy Dugan
Computer Programmer
Regenstrief Institute, Inc.
1050 Wishard Blvd., RG5
Indianapolis, IN 46202
(317) 630 - 7346
Confidentiality Notice: The contents of this message and any files transmitted
with it may contain confidential and/or privileged information and are intended
solely for the use of the named addressee(s). Additionally, the information
contained herein may have been disclosed to you from medical records with
confidentiality protected by federal and state laws. Federal regulations and
State laws prohibit you from making further disclosure of such information
without the specific written consent of the person to whom the information
pertains or as otherwise permitted by such regulations. A general authorization
for the release of medical or other information is not sufficient for this
purpose.
If you have received this message in error, please notify the sender by return
e-mail and delete the original message. Any retention, disclosure, copying,
distribution or use of this information by anyone other than the intended
recipient is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]