Interface ContentReader
- 
@ConsumerType public interface ContentReaderTheContentReader 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_EXTENSIONSstatic java.lang.StringPROPERTY_TYPES 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidparse(java.io.InputStream ins, ContentCreator contentCreator)Read the content from the input stream and create the content using the provided content creator.voidparse(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, javax.jcr.RepositoryExceptionRead 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.javax.jcr.RepositoryException
 
- 
parse
void parse(java.io.InputStream ins, ContentCreator contentCreator) throws java.io.IOException, javax.jcr.RepositoryExceptionRead 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.javax.jcr.RepositoryException
 
 - 
 
 -