problem while compiling xml java program
Hi,
I am facing some problem while compiling java program( which is xml program ) starts with
public class Base64Convert implements StreamTransformation
when try to compile it is saying that StreamTransformation class not found. I set class path manually in dosprompt like set path = c:/jdk1.4.2_12/bin
Is there any extra things do i need to make the StreamTransformation class available. The program looks like below
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
public class Base64Convert implements StreamTransformation {
static final String DELIMITER = "\" <>?=";
private Map param = null;
public void setParameter (Map param) {
this.param = param;
if (param == null) {
this.param = new HashMap();
}
}
public void execute(InputStream in, OutputStream out) {
char[] xmlChar = null;
String xmlString = null;
String data = "";
byte[] decoded = null;
try {
xmlChar = getChar(in);
xmlString = new String(xmlChar);
data = getTokenValue(xmlString, "data");
decoded = com.sap.aii.utilxi.base64.api.Base64.decode(data);
}
catch (Exception ex) {
ex.printStackTrace();
}
finally {
writeOutStream(out, decoded);
}
}
}
Please send all steps to compile the above java program. If possible send class file for the above program in zip format.
thanks
madhusudana

