KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > querying > impl > xtas > Command


1 package org.exoplatform.services.xml.querying.impl.xtas;
2
3 import java.io.InputStream JavaDoc;
4 import java.io.ByteArrayInputStream JavaDoc;
5
6 /**
7  * Compiled (by XSLT) XTAS instruction
8  * @version $Id: Command.java 566 2005-01-25 12:50:49Z kravchuk $
9  */

10 public class Command
11 {
12     private byte[] buf;
13
14     public Command(byte[] bytes)
15     {
16         this.buf = bytes;
17     }
18
19     public InputStream JavaDoc getAsInputStream()
20     {
21         return new ByteArrayInputStream JavaDoc( buf );
22     }
23
24     public String JavaDoc toString()
25     {
26         return new String JavaDoc( buf );
27     }
28
29 }
30
Popular Tags