本文整理汇总了Java中com.sun.xml.internal.bind.unmarshaller.InfosetScanner类的典型用法代码示例。如果您正苦于以下问题:Java InfosetScanner类的具体用法?Java InfosetScanner怎么用?Java InfosetScanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InfosetScanner类属于com.sun.xml.internal.bind.unmarshaller包,在下文中一共展示了InfosetScanner类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createUnmarshallerHandler
import com.sun.xml.internal.bind.unmarshaller.InfosetScanner; //导入依赖的package包/类
/**
* Creates and configures a new unmarshalling pipe line.
* Depending on the setting, we put a validator as a filter.
*
* @return
* A component that implements both {@link UnmarshallerHandler}
* and {@link ValidationEventHandler}. All the parsing errors
* should be reported to this error handler for the unmarshalling
* process to work correctly.
*
* Also, returned handler expects all the XML names to be interned.
*
*/
public final XmlVisitor createUnmarshallerHandler(InfosetScanner scanner, boolean inplace, JaxBeanInfo expectedType ) {
coordinator.reset(scanner,inplace,expectedType,idResolver);
XmlVisitor unmarshaller = coordinator;
// delegate to JAXP 1.3 for validation if the client provided a schema
if (schema != null) {
unmarshaller = new ValidatingUnmarshaller(schema,unmarshaller);
}
if(attachmentUnmarshaller!=null && attachmentUnmarshaller.isXOPPackage()) {
unmarshaller = new MTOMDecorator(this,unmarshaller,attachmentUnmarshaller);
}
return unmarshaller;
}
示例2: createUnmarshallerHandler
import com.sun.xml.internal.bind.unmarshaller.InfosetScanner; //导入依赖的package包/类
/**
* Creates and configures a new unmarshalling pipe line.
* Depending on the setting, we put a validator as a filter.
*
* @return
* A component that implements both {@link UnmarshallerHandler}
* and {@link ValidationEventHandler}. All the parsing errors
* should be reported to this error handler for the unmarshalling
* process to work correctly.
*
* Also, returned handler expects all the XML names to be interned.
*
*/
public final XmlVisitor createUnmarshallerHandler(InfosetScanner scanner, boolean inplace, JaxBeanInfo expectedType ) {
coordinator.reset(scanner,inplace,expectedType,idResolver);
XmlVisitor unmarshaller = coordinator;
// delegate to JAXP 1.3 for validation if the client provided a schema
if (schema != null)
unmarshaller = new ValidatingUnmarshaller(schema,unmarshaller);
if(attachmentUnmarshaller!=null && attachmentUnmarshaller.isXOPPackage())
unmarshaller = new MTOMDecorator(this,unmarshaller,attachmentUnmarshaller);
return unmarshaller;
}
示例3: BinderImpl
import com.sun.xml.internal.bind.unmarshaller.InfosetScanner; //导入依赖的package包/类
BinderImpl(JAXBContextImpl _context,InfosetScanner<XmlNode> scanner) {
this.context = _context;
this.scanner = scanner;
}
示例4: reset
import com.sun.xml.internal.bind.unmarshaller.InfosetScanner; //导入依赖的package包/类
public void reset(InfosetScanner scanner,boolean isInplaceMode, JaxBeanInfo expectedType, IDResolver idResolver) {
this.scanner = scanner;
this.isInplaceMode = isInplaceMode;
this.expectedType = expectedType;
this.idResolver = idResolver;
}