com.sun.xml.ws.security.opt.impl.dsig
Class StAXSTRTransformWriter

java.lang.Object
  extended by com.sun.xml.ws.security.opt.impl.dsig.StAXSTRTransformWriter
All Implemented Interfaces:
StreamWriterData, Data, XMLStreamWriter

public class StAXSTRTransformWriter
extends Object
implements XMLStreamWriter, StreamWriterData

Author:
K.Venugopal@sun.com

Constructor Summary
StAXSTRTransformWriter(Data data, XMLCryptoContext xMLCryptoContext, String refId)
           
StAXSTRTransformWriter(XMLStreamWriter writer, Data data, XMLCryptoContext xMLCryptoContext)
          Creates a new instance of StAXEnvelopedTransformWriter
 
Method Summary
 void close()
           
 void flush()
           
 NamespaceContextEx getNamespaceContext()
           
 String getPrefix(String string)
           
 Object getProperty(String string)
           
 void setDefaultNamespace(String string)
           
 void setNamespaceContext(NamespaceContext namespaceContext)
           
 void setPrefix(String string, String string0)
           
 void write(XMLStreamWriter writer)
          transforms the data using STR transform and writes it to the data
 void writeAttribute(String localname, String value)
           
 void writeAttribute(String uri, String localname, String value)
           
 void writeAttribute(String prefix, String uri, String localName, String value)
           
 void writeCData(String string)
           
 void writeCharacters(char[] c, int index, int len)
           
 void writeCharacters(String string)
           
 void writeComment(String string)
           
 void writeDefaultNamespace(String string)
           
 void writeDTD(String string)
           
 void writeEmptyElement(String string)
           
 void writeEmptyElement(String string, String string0)
           
 void writeEmptyElement(String string, String string0, String string1)
           
 void writeEndDocument()
           
 void writeEndElement()
           
 void writeEntityRef(String string)
           
 void writeNamespace(String string, String string0)
           
 void writeProcessingInstruction(String string)
           
 void writeProcessingInstruction(String string, String string0)
           
 void writeStartDocument()
           
 void writeStartDocument(String string)
           
 void writeStartDocument(String string, String string0)
           
 void writeStartElement(String string)
           
 void writeStartElement(String namespaceURI, String localName)
           
 void writeStartElement(String prefix, String localName, String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StAXSTRTransformWriter

public StAXSTRTransformWriter(XMLStreamWriter writer,
                              Data data,
                              XMLCryptoContext xMLCryptoContext)
Creates a new instance of StAXEnvelopedTransformWriter


StAXSTRTransformWriter

public StAXSTRTransformWriter(Data data,
                              XMLCryptoContext xMLCryptoContext,
                              String refId)
Method Detail

getNamespaceContext

public NamespaceContextEx getNamespaceContext()
Specified by:
getNamespaceContext in interface StreamWriterData
Specified by:
getNamespaceContext in interface XMLStreamWriter

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLStreamWriter
Throws:
XMLStreamException

flush

public void flush()
           throws XMLStreamException
Specified by:
flush in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndDocument

public void writeEndDocument()
                      throws XMLStreamException
Specified by:
writeEndDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndElement

public void writeEndElement()
                     throws XMLStreamException
Specified by:
writeEndElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument()
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(char[] c,
                            int index,
                            int len)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

setDefaultNamespace

public void setDefaultNamespace(String string)
                         throws XMLStreamException
Specified by:
setDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeCData

public void writeCData(String string)
                throws XMLStreamException
Specified by:
writeCData in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(String string)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

writeComment

public void writeComment(String string)
                  throws XMLStreamException
Specified by:
writeComment in interface XMLStreamWriter
Throws:
XMLStreamException

writeDTD

public void writeDTD(String string)
              throws XMLStreamException
Specified by:
writeDTD in interface XMLStreamWriter
Throws:
XMLStreamException

writeDefaultNamespace

public void writeDefaultNamespace(String string)
                           throws XMLStreamException
Specified by:
writeDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String string)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEntityRef

public void writeEntityRef(String string)
                    throws XMLStreamException
Specified by:
writeEntityRef in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String string)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String string)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String string)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext namespaceContext)
                         throws XMLStreamException
Specified by:
setNamespaceContext in interface XMLStreamWriter
Throws:
XMLStreamException

getProperty

public Object getProperty(String string)
                   throws IllegalArgumentException
Specified by:
getProperty in interface XMLStreamWriter
Throws:
IllegalArgumentException

getPrefix

public String getPrefix(String string)
                 throws XMLStreamException
Specified by:
getPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

setPrefix

public void setPrefix(String string,
                      String string0)
               throws XMLStreamException
Specified by:
setPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String localname,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String string,
                              String string0)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeNamespace

public void writeNamespace(String string,
                           String string0)
                    throws XMLStreamException
Specified by:
writeNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String string,
                                       String string0)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String string,
                               String string0)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String namespaceURI,
                              String localName)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String uri,
                           String localname,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String string,
                              String string0,
                              String string1)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String prefix,
                              String localName,
                              String namespaceURI)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String prefix,
                           String uri,
                           String localName,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

write

public void write(XMLStreamWriter writer)
           throws XMLStreamException
transforms the data using STR transform and writes it to the data

Specified by:
write in interface StreamWriterData
Parameters:
writer - XMLStreamWriter
Throws:
XMLStreamException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.