Hi Leute,
ich wollte mal wissen - woher sich z.B. dieses Programm die imports zieht? Was heißt "org" eigentlich?
Ich versteh bloß nicht was org.bla sein soll?
ich wollte mal wissen - woher sich z.B. dieses Programm die imports zieht? Was heißt "org" eigentlich?
Java:
import org.orbeon.oxf.pipeline.api.PipelineContext;
import org.orbeon.oxf.processor.ProcessorInputOutputInfo;
import org.orbeon.oxf.processor.SimpleProcessor;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
public class DeepThoughtProcessor extends SimpleProcessor {
public DeepThoughtProcessor() {
addOutputInfo(new ProcessorInputOutputInfo(OUTPUT_DATA));
}
public void generateData(PipelineContext context,
ContentHandler contentHandler)
throws SAXException {
String answer = "42";
contentHandler.startDocument();
contentHandler.startElement("", "answer", "answer", new AttributesImpl());
contentHandler.characters(answer.toCharArray(), 0, answer.length());
contentHandler.endElement("", "answer", "answer");
contentHandler.endDocument();
}
}
Ich versteh bloß nicht was org.bla sein soll?