org.apache.sling.jcr.contentloader.internal
Interface ContentReader

All Known Implementing Classes:
JsonReader, XmlReader, ZipReader

public interface ContentReader

The ContentReader A content reader is provided by an ImportProvider.


Method Summary
 void parse(InputStream ins, ContentCreator contentCreator)
          Read the content from the input stream and create the content using the provided content creator.
 void parse(URL url, ContentCreator creator)
          Read the content from the URL and create the content using the provided content creator.
 

Method Detail

parse

void parse(URL url,
           ContentCreator creator)
           throws IOException,
                  javax.jcr.RepositoryException
Read the content from the URL and create the content using the provided content creator.

Parameters:
url - The input stream.
Throws:
IOException
javax.jcr.RepositoryException

parse

void parse(InputStream ins,
           ContentCreator contentCreator)
           throws IOException,
                  javax.jcr.RepositoryException
Read the content from the input stream and create the content using the provided content creator.

Parameters:
ins - the input stream.
Throws:
IOException
javax.jcr.RepositoryException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.