public DataSourceBlockImpl(OMElement omElement, QName qName, BlockFactory factory) {
super(omElement, null, qName, factory);
}
protected Object _getBOFromReader(XMLStreamReader reader, Object busContext) throws XMLStreamException, WebServiceException {
Reader2Writer r2w = new Reader2Writer(reader);
try {
return new ByteArrayDataSource(r2w.getAsString(), "application/octet-stream");
} catch (IOException e) {
throw new XMLStreamException(e);
}
}