static public List<XMLEvent> inputStreamToEvents(InputStream stream) { return readerToEvents(readInputStream(stream)); } static public List<XMLEvent> outputSenderToEvents(OutputStreamSender sender) {
static public List<XMLEvent> stringToEvents(String string) { return readerToEvents(readString(string)); } static XMLEventReader readBytes(byte[] bytes) {
static public List<XMLEvent> bytesToEvents(byte[] bytes) { return readerToEvents(readBytes(bytes)); } static public List<XMLEvent> fileToEvents(File file) {
static public List<XMLEvent> stringToEvents(String string) { return readerToEvents(readString(string)); } static XMLEventReader readBytes(byte[] bytes) {
static public List<XMLEvent> bytesToEvents(byte[] bytes) { return readerToEvents(readBytes(bytes)); } static public List<XMLEvent> fileToEvents(File file) {
static public List<XMLEvent> outputSenderToEvents(OutputStreamSender sender) { return readerToEvents(readOutputSender(sender)); } static public List<XMLEvent> readerToEvents(Reader reader) {
static public List<XMLEvent> readerToEvents(Reader reader) { return readerToEvents(readReader(reader)); } static public List<XMLEvent> stringToEvents(String string) {
static public List<XMLEvent> fileToEvents(File file) { return readerToEvents(readFile(file)); } static public List<XMLEvent> inputStreamToEvents(InputStream stream) {
static public List<XMLEvent> outputSenderToEvents(OutputStreamSender sender) { return readerToEvents(readOutputSender(sender)); } static public List<XMLEvent> readerToEvents(Reader reader) {
static public List<XMLEvent> fileToEvents(File file) { return readerToEvents(readFile(file)); } static public List<XMLEvent> inputStreamToEvents(InputStream stream) {
static public List<XMLEvent> inputStreamToEvents(InputStream stream) { return readerToEvents(readInputStream(stream)); } static public List<XMLEvent> outputSenderToEvents(OutputStreamSender sender) {
static public List<XMLEvent> readerToEvents(Reader reader) { return readerToEvents(readReader(reader)); } static public List<XMLEvent> stringToEvents(String string) {
static public List<XMLEvent> objectToEvents(Object content) { if (content == null) { return null; } else if (content instanceof byte[]) { return bytesToEvents((byte[]) content); } else if (content instanceof File) { return fileToEvents((File) content); } else if (content instanceof InputStream) { return inputStreamToEvents((InputStream) content); } else if (content instanceof Reader) { return readerToEvents((Reader) content); } else if (content instanceof String) { return stringToEvents((String) content); } else if (content instanceof OutputStreamSender) { return outputSenderToEvents((OutputStreamSender) content); } else { throw new IllegalArgumentException( "Unrecognized class for import: "+content.getClass().getName() ); } } static public List<XMLEvent> bytesToEvents(byte[] bytes) {
static public List<XMLEvent> objectToEvents(Object content) { if (content == null) { return null; } else if (content instanceof byte[]) { return bytesToEvents((byte[]) content); } else if (content instanceof File) { return fileToEvents((File) content); } else if (content instanceof InputStream) { return inputStreamToEvents((InputStream) content); } else if (content instanceof Reader) { return readerToEvents((Reader) content); } else if (content instanceof String) { return stringToEvents((String) content); } else if (content instanceof OutputStreamSender) { return outputSenderToEvents((OutputStreamSender) content); } else { throw new IllegalArgumentException( "Unrecognized class for import: "+content.getClass().getName() ); } } static public List<XMLEvent> bytesToEvents(byte[] bytes) {