Interface ContentReader
-
@ConsumerType public interface ContentReader
TheContentReader
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_EXTENSIONS
static java.lang.String
PROPERTY_TYPES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
parse(java.io.InputStream ins, ContentCreator contentCreator)
Read the content from the input stream and create the content using the provided content creator.void
parse(java.net.URL url, ContentCreator creator)
Read the content from the URL and create the content using the provided content creator.
-
-
-
Field Detail
-
PROPERTY_EXTENSIONS
static final java.lang.String PROPERTY_EXTENSIONS
- See Also:
- Constant Field Values
-
PROPERTY_TYPES
static final java.lang.String PROPERTY_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
void parse(java.net.URL url, ContentCreator creator) throws java.io.IOException, RepositoryException
Read the content from the URL and create the content using the provided content creator.- Parameters:
url
- The input stream.- Throws:
java.io.IOException
- If anything goes wrong.RepositoryException
-
parse
void parse(java.io.InputStream ins, ContentCreator contentCreator) throws java.io.IOException, RepositoryException
Read the content from the input stream and create the content using the provided content creator.- Parameters:
ins
- the input stream.- Throws:
java.io.IOException
- If anything goes wrong.RepositoryException
-
-