@Override public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException { if (needsSeparatingWhitespace) fiout.writeLowLevelText(" "); /* * Check if the CharSequence is from a base64Binary data type */ if (!(value instanceof Base64Data)) { final int len = value.length(); if(len <buf.length) { value.writeTo(buf, 0); fiout.writeLowLevelText(buf, len); } else { fiout.writeLowLevelText(value.toString()); } } else { final Base64Data dataValue = (Base64Data)value; // Write out the octets using the base64 encoding algorithm fiout.writeLowLevelOctets(dataValue.get(), dataValue.getDataLen()); } }
@Override public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException { if (needsSeparatingWhitespace) fiout.writeLowLevelText(" "); /* * Check if the CharSequence is from a base64Binary data type */ if (!(value instanceof Base64Data)) { final int len = value.length(); if(len <buf.length) { value.writeTo(buf, 0); fiout.writeLowLevelText(buf, len); } else { fiout.writeLowLevelText(value.toString()); } } else { final Base64Data dataValue = (Base64Data)value; // Write out the octets using the base64 encoding algorithm fiout.writeLowLevelOctets(dataValue.get(), dataValue.getDataLen()); } }
@Override public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException { if (needsSeparatingWhitespace) fiout.writeLowLevelText(" "); /* * Check if the CharSequence is from a base64Binary data type */ if (!(value instanceof Base64Data)) { final int len = value.length(); if(len <buf.length) { value.writeTo(buf, 0); fiout.writeLowLevelText(buf, len); } else { fiout.writeLowLevelText(value.toString()); } } else { final Base64Data dataValue = (Base64Data)value; // Write out the octets using the base64 encoding algorithm fiout.writeLowLevelOctets(dataValue.get(), dataValue.getDataLen()); } }
@Override public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException { if (needsSeparatingWhitespace) fiout.writeLowLevelText(" "); /* * Check if the CharSequence is from a base64Binary data type */ if (!(value instanceof Base64Data)) { final int len = value.length(); if(len <buf.length) { value.writeTo(buf, 0); fiout.writeLowLevelText(buf, len); } else { fiout.writeLowLevelText(value.toString()); } } else { final Base64Data dataValue = (Base64Data)value; // Write out the octets using the base64 encoding algorithm fiout.writeLowLevelOctets(dataValue.get(), dataValue.getDataLen()); } }