public Externalizable transform(OMElement source, TransformationContext context) { try { String value = source.getText(); ByteArrayInputStream bis = new ByteArrayInputStream(Base64Binary.decode(value)); ObjectInputStream ois = new ObjectInputStream(bis); Object obj = ois.readObject(); ois.close(); Externalizable aReference = (Externalizable) obj; return aReference; } catch (Exception e) { throw new TransformationException(e); } }
public byte[] parseBase64Binary(String value) { return Base64Binary.decode(value); }
public byte[] parseBase64Binary(String value) { return Base64Binary.decode(value); }