protected static final int nextStringLength(byte[] bytes, int startPos, int length, char delimiter) {
		if (length <= 0) {
			throw new IllegalArgumentException("Invalid input: Empty string");
		}
		int limitedLength = 0;
		final byte delByte = (byte) delimiter;

		while (limitedLength < length && bytes[startPos + limitedLength] != delByte) {
			limitedLength++;
		}

		return limitedLength;
	}
protected static final int nextStringLength ( byte [ ] bytes , int startPos , int length , char delimiter ) { if ( length <= 0 ) { throw new IllegalArgumentException ( "Invalid input: Empty string" ) ; } int limitedLength = 0 ; final byte delByte = ( byte ) delimiter ; while ( limitedLength < length && bytes [ startPos + limitedLength ] != delByte ) { limitedLength ++ ; } return limitedLength ; }
Returns the length of a string. Throws an exception if the column is empty.

@return the length of the string