Deprecated API


Contents
Deprecated Interfaces
com.sun.xml.wss.impl.callback.SAMLAssertionValidator
          use the new extended SAMLValidator interface An implementation of the extended SAMLValidator interface can throw UnsupportedOperationException for methods defined in this base interface. 
 

Deprecated Classes
com.sun.xml.bind.api.BridgeContext
          The caller no longer needs to use this, as Bridge has methods that can work without BridgeContext. 
com.sun.xml.bind.DatatypeConverterImpl
          in JAXB 2.2.4 - use javax.xml.bind.DatatypeConverterImpl instead or let us know why you can't 
com.sun.xml.wss.impl.callback.PrefixNamespaceMappingCallback
          : since XWS 2.0 EA 
com.sun.xml.wss.impl.callback.PropertyCallback
          This callback is no longer supported by the XWS-Security runtime, use the XWS-Security configuration file to set the above property values instead. 
 

Deprecated Annotation Types
com.sun.xml.bind.annotation.XmlIsSet
          this hasn't been implemented in the RI, and this hasn't been speced yet. I believe Joe asked for this feature. I'd like to drop this. 
 

Deprecated Fields
com.sun.xml.bind.marshaller.Messages.ERR_DANGLING_IDREF
          only used from 1.0 
com.sun.xml.bind.marshaller.Messages.ERR_MISSING_OBJECT
          use ERR_MISSING_OBJECT2 
com.sun.xml.bind.marshaller.Messages.ERR_NOT_IDENTIFIABLE
          only used from 1.0 
org.codehaus.stax2.XMLStreamReader2.FEATURE_DTD_OVERRIDE
          Use XMLInputFactory2.P_DTD_OVERRIDE instead. 
com.sun.xml.bind.v2.WellKnownNamespace.XML_NAMESPACE_URI
          Use javax.xml.XMLConstants.XML_NS_URI instead; 
com.sun.xml.bind.v2.WellKnownNamespace.XML_SCHEMA
          Use javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI instead; 
com.sun.xml.bind.v2.WellKnownNamespace.XML_SCHEMA_INSTANCE
          Use javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI instead 
 

Deprecated Methods
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.asElement()
          always return null at this level. 
com.sun.xml.bind.v2.model.impl.ArrayInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.expectText()
           
com.sun.xml.messaging.saaj.packaging.mime.util.ASCIIUtility.getBytes(InputStream)
          this is an expensive operation that require an additional buffer reallocation just to get the array of an exact size. Unless you absolutely need the exact size array, don't use this. Use ByteOutputStream and ByteOutputStream.write(InputStream). 
com.sun.xml.bind.v2.runtime.XMLSerializer.getCachedBase64DataInstance()
          Base64Data is no longer cached, so that XMLStreamWriterEx impl can retain the data, like JAX-WS does. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.getElementName()
          always return null at this level. 
org.jvnet.fastinfoset.FastInfosetParser.getExternalVocabularies()
          The map returned will not be the same instance and contain the same entries as the map set by FastInfosetParser.setExternalVocabularies(java.util.Map) method. 
org.codehaus.stax2.XMLStreamReader2.getFeature(String)
          Should use XMLStreamReader.getProperty(java.lang.String) instead 
com.sun.xml.txw2.output.IndentingXMLStreamWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.txw2.output.IndentingXMLFilter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.txw2.output.DataWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.bind.marshaller.DataWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.getPredictor()
           
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getScope()
          you shouldn't be invoking this method on ClassInfoImpl. 
com.sun.xml.fastinfoset.stax.StAXDocumentParser.getTextAlgorithmBytes()
          was deprecated due to security reasons. Now the method return cloned byte[]. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.isElement()
          always return false at this level. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.isValidating()
          since 2.0 
com.sun.xml.bind.api.JAXBRIContext.newInstance(Class[], Collection, String, boolean)
          Compatibility with older versions. 
com.sun.xml.bind.unmarshaller.DOMScanner.parse(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.stream.buffer.sax.SAXBufferProcessor.process(XMLStreamBuffer)
          Use SAXBufferProcessor.process(XMLStreamBuffer, boolean) 
com.sun.xml.stream.buffer.XMLStreamBuffer.readAsXMLReader()
          Use XMLStreamBuffer.readAsXMLReader(boolean) 
com.sun.xml.stream.buffer.AbstractProcessor.setBuffer(XMLStreamBuffer)
          Use AbstractProcessor.setBuffer(XMLStreamBuffer, boolean) 
org.codehaus.stax2.XMLStreamReader2.setFeature(String, Object)
          Should use XMLStreamReader2.setProperty(java.lang.String, java.lang.Object) instead 
com.sun.xml.txw2.output.IndentingXMLStreamWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.txw2.output.IndentingXMLFilter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.txw2.output.DataWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.bind.marshaller.DataWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.wss.saml.Assertion.setMajorVersion(BigInteger)
          Set the saml major version for SAML1.0 and SAML1.1 
com.sun.xml.wss.saml.Assertion.setMinorVersion(BigInteger)
          Set the saml minor version for SAML1.0 and SAML1.1 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.setValidating(boolean)
          since 2.0 
com.sun.xml.wss.saml.Assertion.setVersion(String)
          Set the saml version for SAML2.0 
com.sun.xml.stream.buffer.sax.SAXBufferProcessor.setXMLStreamBuffer(XMLStreamBuffer)
          Use SAXBufferProcessor.setXMLStreamBuffer(XMLStreamBuffer, boolean). 
com.sun.xml.stream.buffer.stax.StreamWriterBufferProcessor.setXMLStreamBuffer(XMLStreamBuffer)
          Use StreamWriterBufferProcessor.setXMLStreamBuffer(XMLStreamBuffer, boolean) 
com.sun.xml.messaging.saaj.util.ByteOutputStream.toByteArray()
          because this is evil! 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(SAXSource)
           
com.sun.xml.stream.buffer.XMLStreamBuffer.writeTo(ContentHandler)
          Use XMLStreamBuffer.writeTo(ContentHandler,boolean) 
com.sun.xml.stream.buffer.XMLStreamBuffer.writeToXMLStreamWriter(XMLStreamWriter)
          Use XMLStreamBuffer.writeToXMLStreamWriter(XMLStreamWriter, boolean) 
 

Deprecated Constructors
com.sun.xml.stream.buffer.sax.SAXBufferProcessor(XMLStreamBuffer)
          Use SAXBufferProcessor.SAXBufferProcessor(XMLStreamBuffer, boolean) 
com.sun.xml.stream.buffer.stax.StreamWriterBufferProcessor(XMLStreamBuffer)
          Use StreamWriterBufferProcessor.StreamWriterBufferProcessor(XMLStreamBuffer, boolean) 
 



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