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
IOException
public Generator(InputStream in) throws IOException
IOException
public void generateText(int paragraphs, OutputStream out) throws Exception
Exception
public void generateText(int paragraphs, int lineWidth, int totalCharacters, OutputStream out) throws InputMismatchException, IOException
IOException
InputMismatchException
public void generateParagraph(OutputStream out) throws InputMismatchException, IOException
IOException
InputMismatchException
public void generateParagraph(int lineWidth, int totalCharacters, OutputStream out) throws InputMismatchException, IOException
IOException
InputMismatchException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.