Package com.sun.xml.internal.bind.v2.runtime.unmarshaller

Examples of com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data


        builtinBeanInfos = Collections.unmodifiableList(l);
    }

    private static byte[] decodeBase64(CharSequence text) {
        if (text instanceof Base64Data) {
            Base64Data base64Data = (Base64Data) text;
            return base64Data.getExact();
        } else {
            return DatatypeConverterImpl._parseBase64Binary(text.toString());
        }
    }
View Full Code Here


/* 113 */     this.next.text(value, needsSeparatingWhitespace);
/*     */   }
/*     */
/*     */   public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException, SAXException, XMLStreamException {
/* 117 */     if (((value instanceof Base64Data)) && (!this.serializer.getInlineBinaryFlag())) {
/* 118 */       Base64Data b64d = (Base64Data)value;
/*     */       String cid;
/*     */       String cid;
/* 120 */       if (b64d.hasData()) {
/* 121 */         cid = this.serializer.attachmentMarshaller.addMtomAttachment(b64d.get(), 0, b64d.getDataLen(), b64d.getMimeType(), this.nsUri, this.localName);
/*     */       }
/*     */       else {
/* 124 */         cid = this.serializer.attachmentMarshaller.addMtomAttachment(b64d.getDataHandler(), this.nsUri, this.localName);
/*     */       }
/*     */
/* 127 */       if (cid != null) {
/* 128 */         this.nsContext.getCurrent().push();
/* 129 */         int prefix = this.nsContext.declareNsUri("http://www.w3.org/2004/08/xop/include", "xop", false);
View Full Code Here

/*    */     }
/*    */
/* 63 */     if (!(value instanceof Base64Data)) {
/* 64 */       this.out.writeCharacters(value.toString());
/*    */     } else {
/* 66 */       Base64Data v = (Base64Data)value;
/* 67 */       this.out.writeBinary(v.getDataHandler());
/*    */     }
/*    */   }
View Full Code Here

/* 390 */         this.fiout.writeLowLevelText(this.buf, len);
/*     */       } else {
/* 392 */         this.fiout.writeLowLevelText(value.toString());
/*     */       }
/*     */     } else {
/* 395 */       Base64Data dataValue = (Base64Data)value;
/*     */
/* 397 */       this.fiout.writeLowLevelOctets(dataValue.get(), dataValue.getDataLen());
/*     */     }
/*     */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Base64Data getCachedBase64DataInstance()
/*      */   {
/*  208 */     if (this.base64Data == null)
/*  209 */       this.base64Data = new Base64Data();
/*  210 */     return this.base64Data;
/*      */   }
View Full Code Here

/*     */   }
/*     */
/*     */   private static byte[] decodeBase64(CharSequence text)
/*     */   {
/* 817 */     if ((text instanceof Base64Data)) {
/* 818 */       Base64Data base64Data = (Base64Data)text;
/* 819 */       return base64Data.getExact();
/*     */     }
/* 821 */     return DatatypeConverterImpl._parseBase64Binary(text.toString());
/*     */   }
View Full Code Here

     * @deprecated
     *      {@link Base64Data} is no longer cached, so that
     *      XMLStreamWriterEx impl can retain the data, like JAX-WS does.
     */
    public Base64Data getCachedBase64DataInstance() {
        return new Base64Data();
    }
View Full Code Here

        builtinBeanInfos = Collections.unmodifiableList(l);
    }

    private static byte[] decodeBase64(CharSequence text) {
        if (text instanceof Base64Data) {
            Base64Data base64Data = (Base64Data) text;
            return base64Data.getExact();
        } else {
            return DatatypeConverterImpl._parseBase64Binary(text.toString());
        }
    }
View Full Code Here

        builtinBeanInfos = Collections.unmodifiableList(l);
    }

    private static byte[] decodeBase64(CharSequence text) {
        if (text instanceof Base64Data) {
            Base64Data base64Data = (Base64Data) text;
            return base64Data.getExact();
        } else {
            return DatatypeConverterImpl._parseBase64Binary(text.toString());
        }
    }
View Full Code Here

                        reader.next();
                        StringBuffer sb = null;
                        byte [] value = null;
                        CharSequence charSeq = ((XMLStreamReaderEx)reader).getPCDATA();
                        if(charSeq instanceof Base64Data){
                            Base64Data bd = (Base64Data) ((XMLStreamReaderEx)reader).getPCDATA();
                            value = bd.getExact();
                            if(canonWriter != null){
                                String ev = Base64.encode(value);
                                canonWriter.writeCharacters(ev);
                            }
                        }else {
View Full Code Here

TOP

Related Classes of com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.