public class Generator extends Object
| Constructor and Description |
|---|
Generator(InputStream in) |
Generator(InputStream in,
int prefixLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateParagraph(int lineWidth,
int totalCharacters,
OutputStream out)
Generate a paragraph to a writer
|
void |
generateParagraph(OutputStream out)
Generate a paragraph using defaults to a writer
|
void |
generateText(int paragraphs,
int lineWidth,
int totalCharacters,
OutputStream out)
Generate a text to a writer
|
void |
generateText(int paragraphs,
OutputStream out)
Generate a text using defaults to a writer
|
public Generator(InputStream in, int prefixLength) throws IOException
IOExceptionpublic Generator(InputStream in) throws IOException
IOExceptionpublic void generateText(int paragraphs,
OutputStream out)
throws Exception
Exceptionpublic void generateText(int paragraphs,
int lineWidth,
int totalCharacters,
OutputStream out)
throws InputMismatchException,
IOException
IOExceptionInputMismatchExceptionpublic void generateParagraph(OutputStream out) throws InputMismatchException, IOException
IOExceptionInputMismatchExceptionpublic void generateParagraph(int lineWidth,
int totalCharacters,
OutputStream out)
throws InputMismatchException,
IOException
IOExceptionInputMismatchExceptionCopyright © 2017 Open Knowledge Management System S.L.. All rights reserved.