|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.meta.java.io.BufferedReaderSugar
Untamed: A sweetener defining extra messages that may be e-sent to a Reader.
Constructor Summary | |
private |
BufferedReaderSugar()
prevent instantiation |
Method Summary | |
static String |
getText(BufferedReader self)
Enabled: Gets the rest of the input as a String (equivalently, bare Twine), normalizing newlines into '\n's. |
static Twine |
getTwine(BufferedReader self,
String url)
Enabled: Gets the contents of the url as Twine (a text string that remembers where it came from), normalizing newlines into '\n's. |
static void |
iterate(BufferedReader self,
AssocFunc func)
Enabled: Enumerates lineNumber => String (text line) associations. |
static void |
iterate(BufferedReader self,
AssocFunc func,
String optURL)
Enabled: Enumerates lineNumber => String/Twine (text line) associations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private BufferedReaderSugar()
Method Detail |
public static void iterate(BufferedReader self, AssocFunc func) throws Throwable
Each text line ends with a "\n". optURL defaults to null.
Throwable
public static void iterate(BufferedReader self, AssocFunc func, String optURL) throws IOException
Each text line ends with a "\n". If optURL is null, then each text line will be a String. Otherwise, each will be a Twine with location info.
IOException
public static String getText(BufferedReader self) throws IOException
IOException
public static Twine getTwine(BufferedReader self, String url) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |