Package cdc.util.xml
Class AbstractStAXLoader<R>
- java.lang.Object
-
- cdc.util.xml.AbstractStAXLoader<R>
-
- Type Parameters:
R- The parsing result type.
public abstract class AbstractStAXLoader<R> extends Object
Base class used to load an XML file.Parsing is delegated to a parser that must be provided.
- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractStAXLoader(Function<XMLStreamReader,? extends AbstractStAXParser<R>> ctor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rload(File file)Rload(File file, Compressor compressor)Rload(InputStream is)Rload(InputStream is, String systemId)Rload(InputStream is, String systemId, Compressor compressor)Rload(Reader reader)Rload(String filename)Rload(String filename, Compressor compressor)Rload(URL url)Rload(URL url, Compressor compressor)
-
-
-
Constructor Detail
-
AbstractStAXLoader
protected AbstractStAXLoader(Function<XMLStreamReader,? extends AbstractStAXParser<R>> ctor)
-
-
Method Detail
-
load
public R load(Reader reader) throws IOException
- Throws:
IOException
-
load
public R load(InputStream is) throws IOException
- Throws:
IOException
-
load
public R load(InputStream is, String systemId) throws IOException
- Throws:
IOException
-
load
public R load(InputStream is, String systemId, Compressor compressor) throws IOException
- Throws:
IOException
-
load
public final R load(String filename, Compressor compressor) throws IOException
- Throws:
IOException
-
load
public final R load(String filename) throws IOException
- Throws:
IOException
-
load
public final R load(File file, Compressor compressor) throws IOException
- Throws:
IOException
-
load
public final R load(File file) throws IOException
- Throws:
IOException
-
load
public final R load(URL url, Compressor compressor) throws IOException
- Throws:
IOException
-
load
public final R load(URL url) throws IOException
- Throws:
IOException
-
-