SkyEpub SDK for Android 7
 All Classes Functions Variables
Public Member Functions | List of all members
com.skytree.epub.ContentListener Interface Reference

Public Member Functions

long getLength (String baseDirectory, String contentPath)
 
InputStream getInputStream (String baseDirectory, String contentPath)
 
boolean isExists (String baseDirectory, String contentPath)
 
long getLastModified (String baseDirectory, String contentPath)
 

Detailed Description

ContentListener is the interface for custom reader for epub file.

Author
skytree *

Member Function Documentation

InputStream com.skytree.epub.ContentListener.getInputStream ( String  baseDirectory,
String  contentPath 
)

called whenever sdk needs InputStream for a file of epub

Parameters
baseDirectorybaseDirectory of epub
contentPathrelative path from baseDirectory
Returns
InputStream for a file of epub
long com.skytree.epub.ContentListener.getLastModified ( String  baseDirectory,
String  contentPath 
)

called when sdk needs to know the last modified date.

Parameters
baseDirectory
contentPath
Returns
returns if file exists.
long com.skytree.epub.ContentListener.getLength ( String  baseDirectory,
String  contentPath 
)

called whenever the length of a file is needed to be read.

Parameters
baseDirectorybaseDirectory of epub
contentPathrelative path from baseDirectory
Returns
the length of a file
boolean com.skytree.epub.ContentListener.isExists ( String  baseDirectory,
String  contentPath 
)

called when sdk needs to know if a file exists or not.

Parameters
baseDirectory
contentPath
Returns
returns if file exists.

The documentation for this interface was generated from the following file: