当前位置: 首页>>代码示例>>Java>>正文


Java AttachmentUnmarshaller类代码示例

本文整理汇总了Java中javax.xml.bind.attachment.AttachmentUnmarshaller的典型用法代码示例。如果您正苦于以下问题:Java AttachmentUnmarshaller类的具体用法?Java AttachmentUnmarshaller怎么用?Java AttachmentUnmarshaller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AttachmentUnmarshaller类属于javax.xml.bind.attachment包,在下文中一共展示了AttachmentUnmarshaller类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: unmarshalWithBridge

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public static Object unmarshalWithBridge(QName qname,
                                         Class<?> cls,
                                         Annotation anns[],
                                         Set<Type> ctxClasses,
                                         Object source,
                                         AttachmentUnmarshaller am) {
    
    try {
    	com.github.cxfplus.jaxbplus.JAXBUtils.BridgeWrapper bridge = com.github.cxfplus.jaxbplus.JAXBUtils.createBridge(ctxClasses, qname, cls, anns);
       
        if (source instanceof XMLStreamReader) {
            //DOMUtils.writeXml(StaxUtils.read((XMLStreamReader)source), System.out);
            return bridge.unmarshal((XMLStreamReader)source, am);               
        } else if (source instanceof InputStream) {
            return bridge.unmarshal((InputStream)source);
        } else if (source instanceof Node) {
            return bridge.unmarshal((Node)source, am);
        } else {
            throw new Fault(new Message("UNKNOWN_SOURCE", LOG, source.getClass().getName()));
        }
    } catch (Exception ex) {
        if (ex instanceof javax.xml.bind.MarshalException) {
            javax.xml.bind.MarshalException marshalEx = (javax.xml.bind.MarshalException)ex;
            Message faultMessage = new Message("MARSHAL_ERROR", LOG, marshalEx.getLinkedException()
                .getMessage());
            throw new Fault(faultMessage, ex);
        } else {
            throw new Fault(new Message("MARSHAL_ERROR", LOG, ex.getMessage()), ex);
        }
    }

}
 
开发者ID:GeeQuery,项目名称:cxf-plus,代码行数:33,代码来源:JAXBEncoderDecoder.java

示例2: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
/**
 * @since 2.0.3
 */
public final @NotNull T unmarshal(@NotNull XMLStreamReader in, @Nullable AttachmentUnmarshaller au) throws JAXBException {
    Unmarshaller u = context.unmarshallerPool.take();
    u.setAttachmentUnmarshaller(au);
    return exit(unmarshal(u,in),u);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:OldBridge.java

示例3: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
    public final T unmarshal(Node n, AttachmentUnmarshaller au) throws JAXBException {
        //EndpointArgumentsBuilder.RpcLit.readRequest
        throw new UnsupportedOperationException();
//      return bridge.unmarshal(n, au);
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WrapperBridge.java

示例4: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
public T unmarshal(XMLStreamReader in, AttachmentUnmarshaller au) throws JAXBException {
    return delegate.unmarshal(in, au);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RepeatedElementBridge.java

示例5: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
public final T unmarshal(Node n, AttachmentUnmarshaller au)
        throws JAXBException {
    return bridge.unmarshal(n, au);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:BridgeWrapper.java

示例6: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
    public final T unmarshal(Node n, AttachmentUnmarshaller au) throws JAXBException {
        //EndpointArgumentsBuilder.RpcLit.readRequest
        throw new UnsupportedOperationException();
//              return bridge.unmarshal(n, au);
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WrapperBridge.java

示例7: setAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public void setAttachmentUnmarshaller(AttachmentUnmarshaller u) {
    unmarshaller.setAttachmentUnmarshaller(u);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BridgeContextImpl.java

示例8: getAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public AttachmentUnmarshaller getAttachmentUnmarshaller() {
    return unmarshaller.getAttachmentUnmarshaller();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BridgeContextImpl.java

示例9: MTOMDecorator

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public MTOMDecorator(UnmarshallerImpl parent,XmlVisitor next, AttachmentUnmarshaller au) {
    this.parent = parent;
    this.next = next;
    this.au = au;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:MTOMDecorator.java

示例10: getAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
public AttachmentUnmarshaller getAttachmentUnmarshaller() {
    return attachmentUnmarshaller;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:UnmarshallerImpl.java

示例11: setAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
@Override
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
    this.attachmentUnmarshaller = au;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:UnmarshallerImpl.java

示例12: unmarshal

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public DataHandler unmarshal(String cid) {
    AttachmentUnmarshaller au = UnmarshallingContext.getInstance().parent.getAttachmentUnmarshaller();
    // TODO: error check
    return au.getAttachmentAsDataHandler(cid);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:SwaRefAdapter.java

示例13: setAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
    throw new UnsupportedOperationException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AbstractUnmarshallerImpl.java

示例14: getAttachmentUnmarshaller

import javax.xml.bind.attachment.AttachmentUnmarshaller; //导入依赖的package包/类
public AttachmentUnmarshaller getAttachmentUnmarshaller() {
    throw new UnsupportedOperationException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AbstractUnmarshallerImpl.java


注:本文中的javax.xml.bind.attachment.AttachmentUnmarshaller类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。