|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.eio.EIO
Safe: Start Here: Safe static methods, typically for making EIO objects of various kinds.
Field Summary | |
static int |
ALL
Enabled: ALL ( Integer.MAX_VALUE ) represents the number of remaining
elements left until termination (close or fail) will be hit. |
static StaticMaker |
EIOMaker
Enabled: |
Constructor Summary | |
private |
EIO()
prevents instantiation |
Method Summary | |
static Object[] |
makeBytesWriter(int sizeHint)
Enabled: Like makeListWriter(int, Class) , but with elementType 'byte'. |
static Object[] |
makeListWriter(int sizeHint,
Class elementType)
Enabled: Makes and returns a pair of an OutStream and a promise for the list of all the elements written to that writer. |
static Object[] |
makeStringWriter(int sizeHint)
Enabled: Like makeListWriter(int, Class) , but the elementType is 'char',
and on success the promise resolves to a bare Twine of these characters. |
static InStream |
wrapJInputStream(InputStream jIns)
Enabled: Wraps a Java InputStream with an InStream of bytes. |
static OutStream |
wrapJOutputStream(OutputStream jOuts)
Enabled: Wraps a Java OutputStream with an OutStream of bytes. |
static OutStream |
wrapJWriter(Writer jOuts)
Enabled: Wraps a Java Writer of Strings with a OutStream of chars. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final StaticMaker EIOMaker
public static final int ALL
Integer.MAX_VALUE
) represents the number of remaining
elements left until termination (close or fail) will be hit.
Constructor Detail |
private EIO()
Method Detail |
public static Object[] makeListWriter(int sizeHint, Class elementType)
Should the OutStream be closed, the promise resolves to the list of all the element that have been written.
Should the OutStream fail, the promise will break with the same terminal problem (resolve to a reference broken by that problem).
sizeHint
- elementType
-
public static Object[] makeStringWriter(int sizeHint)
makeListWriter(int, Class)
, but the elementType is 'char',
and on success the promise resolves to a bare Twine of these characters.
public static Object[] makeBytesWriter(int sizeHint)
makeListWriter(int, Class)
, but with elementType 'byte'.
sizeHint
-
public static InStream wrapJInputStream(InputStream jIns)
jIns
-
public static OutStream wrapJWriter(Writer jOuts)
jOuts
-
public static OutStream wrapJOutputStream(OutputStream jOuts)
jOuts
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |