90 |
|
|
91 |
public InputStream getAsStream() throws IOException |
public InputStream getAsStream() throws IOException |
92 |
{ |
{ |
|
/* |
|
|
* ByteArrayOutputStream os = new ByteArrayOutputStream(); |
|
|
* ObjectOutputStream out = new ObjectOutputStream(os); |
|
|
* out.writeObject(this); out.close(); InputStream istream = new |
|
|
* ByteArrayInputStream(os.toByteArray()); os.close(); return istream; |
|
|
*/ |
|
93 |
ByteArrayOutputStream os = new ByteArrayOutputStream(); |
ByteArrayOutputStream os = new ByteArrayOutputStream(); |
94 |
BufferedOutputStream o = new BufferedOutputStream(os); |
BufferedOutputStream o = new BufferedOutputStream(os); |
95 |
o.write(this.toXML().getBytes()); |
o.write(this.toXML().getBytes()); |