public class ManPageLoader extends Object implements PageLoader
| Constructor and Description |
|---|
ManPageLoader() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAsList() |
String |
getName() |
String |
getResourceName() |
List<ManSection> |
getSections() |
List<String> |
loadPage(int columns) |
String |
print() |
void |
setFile(File file)
Read from a specified file.
|
void |
setFile(InputStream input,
String fileName) |
void |
setFile(String filename)
Read from a specified filename.
|
void |
setFileFromAJar(String fileName)
Read a file resouce located in a jar
|
void |
setUrlFile(URL url) |
public void setFile(String filename) throws IOException
filename - FileIOExceptionpublic void setFile(File file) throws IOException
file - FileIOExceptionpublic void setUrlFile(URL url) throws IOException
IOExceptionpublic void setFile(InputStream input, String fileName) throws IOException
IOExceptionpublic void setFileFromAJar(String fileName)
fileName - namepublic String getResourceName()
getResourceName in interface PageLoaderpublic String getName()
public List<String> loadPage(int columns) throws IOException
loadPage in interface PageLoaderIOExceptionpublic List<ManSection> getSections()
public String print()
Copyright © 2014 JBoss by Red Hat. All rights reserved.