public String getPrefix(String uri) throws XMLStreamException { return NamespaceHelper.getPrefix(currentNode, uri); }
/** * Default constructor. */ public StaxBuilder() { xifactory = STAXUtils.getXMLInputFactory(null); }
public static XMLStreamReader createXMLStreamReader(Reader reader) { return createXMLStreamReader(reader, null); }
/** * Returns base64 representation of specified byte array. */ public static String encode(byte[] data) { return encode(data, 0, data.length); }
protected final NameAndType resolveNameAndType(int i) throws IOException { int oldPos = pos; try { NameAndType nt = (NameAndType) cpool[i]; if (nt == null) { pos = cpoolIndex[i]; String name = resolveUtf8(readShort()); String type = resolveUtf8(readShort()); cpool[i] = nt = new NameAndType(name, type); } return nt; } finally { pos = oldPos; } }
protected String makeServiceNameFromClassName(Class clazz) { return ServiceUtils.makeServiceNameFromClassName(clazz); }
public InputStream getInputStream() throws IOException { return cos.getInputStream(); }
public OutMessageDataSource(MessageContext context2, OutMessage message) throws XFireException { this.context = context2; this.msg = message; is = createInputStream(); }
public static void writeDocument( Document d, XMLStreamWriter writer, boolean repairing ) throws XMLStreamException { writeDocument(d, writer, true, repairing); }
/** * process a class file, given it's class. We'll use the defining * classloader to locate the bytecode. * @param c * @throws IOException */ public ParamReader(Class c) throws IOException { this(getBytes(c)); }
public boolean hasNext() throws XMLStreamException { return !(frames.size() == 0 && frame.ended); }
public File getFile() { return cos.getTempFile(); } }
public void dispose() { out.dispose(); } }
public void push(Object o) { add(o); }
public String getPrefix(String uri) { return NamespaceHelper.getPrefix(element, uri); }
public StaxBuilder(Map namespaces) { xifactory = STAXUtils.getXMLInputFactory(null); this.additionalNamespaces = namespaces; }