|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.staccatocommons.io.IOStreams
public class IOStreams
Class methods for creating Streams that retrieve elements from
different IO sources
| Method Summary | ||
|---|---|---|
static Stream<String> |
fromLines(InputStream in)
Answers a Stream that retrieves lines from the given
InputStream |
|
static Stream<String> |
fromLines(Reader readable)
Answers a Stream that retrieves lines from the given
Readable |
|
static
|
fromObjects(ObjectInput readable)
Answers a Stream that retrieves objects from the given
ObjectInput |
|
static Stream<String> |
fromTokens(InputStream in,
String regexp)
Answers a Stream that retrieves tokens that match the given regular
expression from the given InputStream |
|
static Stream<String> |
fromTokens(Readable readable,
String regexp)
Answers a Stream that retrieves tokens that match the given regular
expression from the given Readable |
|
static Stream<String> |
fromWords(InputStream in)
Answers a Stream that retrieves words from the given
InputStream |
|
static Stream<String> |
fromWords(Readable readable)
Answers a Stream that retrieves words from the given
Readable |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@NonNull
public static Stream<String> fromWords(@KeepOpen@NonNull
Readable readable)
Stream that retrieves words from the given
Readable
readable -
Stream
@NonNull
public static Stream<String> fromWords(@NonNull
InputStream in)
Stream that retrieves words from the given
InputStream
readable -
Stream
@NonNull
public static Stream<String> fromLines(@KeepOpen@NonNull
Reader readable)
Stream that retrieves lines from the given
Readable
readable -
Stream
@NonNull
public static Stream<String> fromLines(@KeepOpen@NonNull
InputStream in)
Stream that retrieves lines from the given
InputStream
readable -
Stream
@NonNull
public static Stream<String> fromTokens(@KeepOpen@NonNull
Readable readable,
@NonNull
String regexp)
Stream that retrieves tokens that match the given regular
expression from the given Readable
readable - regexp -
Stream
@NonNull
public static Stream<String> fromTokens(@KeepOpen@NonNull
InputStream in,
@NonNull
String regexp)
Stream that retrieves tokens that match the given regular
expression from the given InputStream
readable - regexp -
Stream
@NonNull
public static <A> Stream<A> fromObjects(@KeepOpen@NonNull
ObjectInput readable)
Stream that retrieves objects from the given
ObjectInput
A - the type of object to read from the given redablereadable - an ObjectInput that is the source of the returned
Stream
Stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||