|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InfosetFactory<T>
Interface representing factory that builds Infoset
instances. An instance of this interface must be able to
construct concrete Infoset
instances from data streams.
Nested Class Summary | |
---|---|
static class |
InfosetFactory.Registry
|
Method Summary | ||
---|---|---|
|
adaptFrom(Infoset<V> infoset)
Converts an instance of the provided Infoset type to the native type for this factory. |
|
|
adaptTo(java.lang.Class<V> clazz,
Infoset<T> infoset)
Converts an instance of the provided Infoset type to the native type for this factory. |
|
Infoset<T> |
create(java.io.InputStream input)
Creates an infoset that will, when accessed, parse the content from the provided URL . |
|
Infoset<T> |
create(java.nio.channels.ReadableByteChannel channel)
Creates an infoset that will, when accessed, parse the content from the provided URL . |
|
Infoset<T> |
create(java.net.URL url)
Creates an infoset that will, when accessed, parse the content from the provided InputStream . |
Method Detail |
---|
Infoset<T> create(java.nio.channels.ReadableByteChannel channel) throws java.io.IOException
URL
. Once parsed, the content will be cached, so anything that wishes to
modify the resulting Document
must clone it first.
java.io.IOException
Infoset<T> create(java.io.InputStream input) throws java.io.IOException
URL
. Once parsed, the content will be cached, so anything that wishes to
modify the resulting Document
must clone it first.
java.io.IOException
Infoset<T> create(java.net.URL url) throws java.io.IOException
InputStream
. Once parsed, the content will be cached, so anything that wishes to
modify the resulting Document
must clone it first.
java.io.IOException
<V> Infoset<V> adaptTo(java.lang.Class<V> clazz, Infoset<T> infoset)
Infoset
type to the native type for this factory.
If the factory does not support the conversion, it should return null
.
<V> Infoset<T> adaptFrom(Infoset<V> infoset)
Infoset
type to the native type for this factory.
If the factory does not support the conversion, it should return null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |