Class GapListPrimitives
- java.lang.Object
-
- org.magicwerk.brownies.collections.primitive.GapListPrimitives
-
-
Constructor Summary
Constructors Constructor Description GapListPrimitives()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidadd(java.lang.CharSequence str, CharGapList list, int start, int end)Add specified number of chars from CharSequence into CharGapList.protected static intread(java.io.InputStream istream, ByteGapList list, int len)Read specified number of bytes from InputStream into ByteGapList.protected static intread(java.io.Reader reader, CharGapList list, int len)Read specified number of chars from Reader into CharGapList.
-
-
-
Method Detail
-
read
protected static int read(java.io.InputStream istream, ByteGapList list, int len) throws java.io.IOExceptionRead specified number of bytes from InputStream into ByteGapList.- Parameters:
istream- input stream (source)list- list (target)len- maximum number of bytes to read- Returns:
- number of bytes read into the buffer, -1 if end of stream has been reached
- Throws:
java.io.IOException
-
read
protected static int read(java.io.Reader reader, CharGapList list, int len) throws java.io.IOExceptionRead specified number of chars from Reader into CharGapList.- Parameters:
reader- reader (source)list- list (target)len- maximum number of bytes to read- Returns:
- number of bytes read into the buffer, -1 if end of stream has been reached
- Throws:
java.io.IOException
-
add
protected static void add(java.lang.CharSequence str, CharGapList list, int start, int end)Add specified number of chars from CharSequence into CharGapList.- Parameters:
str- CharSequence (source)list- list (target)start- start position of characters to add in CharSequenceend- end position of characters to add in CharSequence
-
-