Package org.ctan.site.services.content
Class LionService
java.lang.Object
org.ctan.site.services.content.LionService
The class
LionService contains the service to access the lion
directory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe classFileListTocontains a transport object for the list resource.static classThe classFileTocontains the transport object for the list resource. -
Constructor Summary
ConstructorsConstructorDescriptionLionService(@NonNull CtanConfiguration.ContentConfig config) This is the constructor for the classLionService. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]The methodcontentprovides means to read the contents of a file.list()The methodlistprovides means to retrieve the directory listing for the lion files.
-
Constructor Details
-
LionService
This is the constructor for the classLionService.- Parameters:
config- the content configuration
-
-
Method Details
-
content
The methodcontentprovides means to read the contents of a file.- Parameters:
name- the name of the file- Returns:
- the contents or
null - Throws:
IOException- in case of an I/O errorFileNotFoundException- in case the file does not exist
-
list
The methodlistprovides means to retrieve the directory listing for the lion files.- Returns:
- a transport object
-