- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
It is the caller's responsibility to use this class's "write" methods to pass a valid XML document to an instance of this class, including anything loaded externally (e.g., an external DTD). When an XML document is fully read, this class will automatically flush and close the underlying output stream.
Warning: this class instantiates the class com.sun.xml.internal.fastinfoset.sax.SAXDocumentSerializer, which is provided in the JDK (at least, at the time this documentation was written), but for some unknown reason, the OpenJDK compiler will not recognize the package "com.sun.xml.internal.fastinfoset.sax" when used in an import statement in spite of it being present in the system JAR file. Oddly, one can create an instance of the SAXDocumentSrializer class by using the reflection API.
Because of this odd behavior, one should refrain from writing applications that are dependent on this class working as expected as it may disappear or have to be modified in subsequent JDK releases.
The static method isSupported()
can be used
to determine if this class is supported on a particular JDK or JRE.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.static boolean
Deprecated.Test if the fast infoset format is supported by the JRE.Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
FISOutputStream
Deprecated.Constructor.- Parameters:
os
- the underlying output stream- Throws:
UnsupportedOperationException
- this Java implementation does not support this class.
-
-
Method Details
-
isSupported
public static boolean isSupported()Deprecated.Test if the fast infoset format is supported by the JRE. The fast infoset format is assumed to be supported if the class file for com.sun.xml.internal.fastinfoset.sax.SAXDocumentSerializer can be loaded.- Returns:
- true if it is supported; false otherwise
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-