|
PDF Clown CLI Samples 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.samples.cli.Sample
public abstract class Sample
Abstract sample.
| Constructor Summary | |
|---|---|
Sample()
|
|
| Method Summary | |
|---|---|
protected String |
getIndentation(int level)
|
protected String |
getOutputPath()
Gets the path used to serialize output files. |
protected String |
getOutputPath(String fileName)
Gets the path used to serialize output files. |
protected String |
getResourcePath(String resourceName)
Gets the path to a sample resource. |
boolean |
isQuit()
Gets whether the sample was exited before its completion. |
protected void |
prompt(String message)
Prompts a message to the user. |
protected String |
promptChoice(Map<String,String> options)
Gets the user's choice from the given options. |
protected String |
promptChoice(String message)
Gets the user's choice from the given request. |
protected String |
promptFileChoice(String inputDescription)
|
protected boolean |
promptNextPage(Page page,
boolean skip)
Prompts the user for advancing to the next page. |
protected int |
promptPageChoice(String inputDescription,
int pageCount)
Prompts the user for a page index to select. |
protected int |
promptPageChoice(String inputDescription,
int startIndex,
int endIndex)
Prompts the user for a page index to select. |
protected void |
quit()
Indicates that the sample was exited before its completion. |
abstract void |
run()
Executes the sample. |
protected String |
serialize(File file)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
SerializationModeEnum serializationMode)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
SerializationModeEnum serializationMode,
String title,
String subject,
String keywords)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
String fileName)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
String fileName,
SerializationModeEnum serializationMode)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
String fileName,
SerializationModeEnum serializationMode,
String title,
String subject,
String keywords)
Serializes the given PDF Clown file object. |
protected String |
serialize(File file,
String title,
String subject,
String keywords)
Serializes the given PDF Clown file object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sample()
| Method Detail |
|---|
public boolean isQuit()
public abstract void run()
protected String getIndentation(int level)
protected String getOutputPath()
protected String getOutputPath(String fileName)
fileName - Relative output file path.protected String getResourcePath(String resourceName)
resourceName - Relative resource path.protected void prompt(String message)
message - Text to show.protected String promptChoice(String message)
message - Description of the request to show to the user.
protected String promptChoice(Map<String,String> options)
options - Available options to show to the user.
protected String promptFileChoice(String inputDescription)
protected boolean promptNextPage(Page page,
boolean skip)
page - Next page.skip - Whether the prompt has to be skipped.
protected int promptPageChoice(String inputDescription,
int pageCount)
inputDescription - Message prompted to the user.pageCount - Page count.
protected int promptPageChoice(String inputDescription,
int startIndex,
int endIndex)
inputDescription - Message prompted to the user.startIndex - First page index, inclusive.endIndex - Last page index, exclusive.
protected void quit()
protected String serialize(File file)
file - PDF file to serialize.
protected String serialize(File file,
SerializationModeEnum serializationMode)
file - PDF file to serialize.serializationMode - Serialization mode.
protected String serialize(File file,
String fileName)
file - PDF file to serialize.fileName - Output file name.
protected String serialize(File file,
String fileName,
SerializationModeEnum serializationMode)
file - PDF file to serialize.fileName - Output file name.serializationMode - Serialization mode.
protected String serialize(File file,
String title,
String subject,
String keywords)
file - PDF file to serialize.title - Document title.subject - Document subject.keywords - Document keywords.
protected String serialize(File file,
SerializationModeEnum serializationMode,
String title,
String subject,
String keywords)
file - PDF file to serialize.serializationMode - Serialization mode.title - Document title.subject - Document subject.keywords - Document keywords.
protected String serialize(File file,
String fileName,
SerializationModeEnum serializationMode,
String title,
String subject,
String keywords)
file - PDF file to serialize.fileName - Output file name.serializationMode - Serialization mode.title - Document title.subject - Document subject.keywords - Document keywords.
|
PDF Clown CLI Samples 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||