org.codehaus.stax2.io
Class Stax2FileResult

java.lang.Object
  extended by org.codehaus.stax2.io.Stax2Result
      extended by org.codehaus.stax2.io.Stax2ReferentialResult
          extended by org.codehaus.stax2.io.Stax2FileResult
All Implemented Interfaces:
javax.xml.transform.Result

public class Stax2FileResult
extends Stax2ReferentialResult

Simple implementation of Stax2ReferentialResult, which refers to the specific file.


Field Summary
 
Fields inherited from class org.codehaus.stax2.io.Stax2Result
mEncoding, mPublicId, mSystemId
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
Stax2FileResult(java.io.File f)
           
 
Method Summary
 java.io.OutputStream constructOutputStream()
          This method creates an OutputStream via which underlying output target can be written to.
 java.io.Writer constructWriter()
          This method creates a Writer via which underlying output target can be written to.
 java.io.File getFile()
           
 
Methods inherited from class org.codehaus.stax2.io.Stax2Result
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stax2FileResult

public Stax2FileResult(java.io.File f)
Method Detail

constructWriter

public java.io.Writer constructWriter()
                               throws java.io.IOException
Description copied from class: Stax2Result
This method creates a Writer via which underlying output target can be written to. Note that caller is responsible for closing that Writer when it is done reading it.

Specified by:
constructWriter in class Stax2ReferentialResult
Throws:
java.io.IOException

constructOutputStream

public java.io.OutputStream constructOutputStream()
                                           throws java.io.IOException
Description copied from class: Stax2Result
This method creates an OutputStream via which underlying output target can be written to. Note that caller is responsible for closing that OutputStream when it is done reading it

Specified by:
constructOutputStream in class Stax2ReferentialResult
Throws:
java.io.IOException

getFile

public java.io.File getFile()