/libcore/luni/src/main/java/java/io/ |
H A D | OptionalDataException.java | 42 public int length; field in class:OptionalDataException
|
H A D | BufferedOutputStream.java | 106 * @param length 110 * if {@code offset < 0} or {@code length < 0}, or if 111 * {@code offset + length} is greater than the size of 121 public synchronized void write(byte[] buffer, int offset, int length) throws IOException { argument 129 if (length >= internalBuffer.length) { 131 out.write(buffer, offset, length); 135 Arrays.checkOffsetAndCount(buffer.length, offset, length); 138 if (length > (internalBuffe [all...] |
H A D | FilterOutputStream.java | 99 * @param length 103 * {@code offset + count} is bigger than the length of 109 public void write(byte[] buffer, int offset, int length) throws IOException { argument 110 Arrays.checkOffsetAndCount(buffer.length, offset, length); 111 for (int i = 0; i < length; i++) {
|
H A D | ByteArrayInputStream.java | 60 this.count = buf.length; 66 * number of bytes available set to {@code offset} + {@code length}. 72 * @param length 75 public ByteArrayInputStream(byte[] buf, int offset, int length) { argument 79 count = offset + length > buf.length ? buf.length : offset + length; 145 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
|
/libcore/luni/src/main/java/java/lang/ |
H A D | CharSequence.java | 32 public int length(); method in interface:CharSequence 36 * @throws IndexOutOfBoundsException if {@code index < 0} or {@code index >= length()}. 56 * length of this sequence.
|
H A D | StringToReal.java | 73 private static StringExponentPair initialParse(String s, int length, boolean isDouble) { argument 75 if (length == 0) { 82 char c = s.charAt(length - 1); 84 length--; 85 if (length == 0) { 93 if (end + 1 == length) { 107 String exponentString = s.substring(exponentOffset, length); 111 for (int i = 0; i < exponentString.length(); ++i) { 137 end = length; 144 --length; [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | GatheringByteChannel.java | 32 * This method is equivalent to: {@code write(buffers, 0, buffers.length);} 47 * if {@code offset < 0} or {@code length < 0}, or if 48 * {@code offset + length} is greater than the size of 59 * Attempts to write all <code>remaining()</code> bytes from {@code length} 72 * @param length 85 * if {@code offset < 0} or {@code length < 0}, or if 86 * {@code offset + length} is greater than the size of 93 public long write(ByteBuffer[] buffers, int offset, int length) argument
|
H A D | ScatteringByteChannel.java | 32 * This method is equivalent to {@code read(buffers, 0, buffers.length);} 55 * Attempts to read all {@code remaining()} bytes from {@code length} byte 66 * @param length 79 * if {@code offset < 0} or {@code length < 0}, or if 80 * {@code offset + length} is greater than the size of 88 public long read(ByteBuffer[] buffers, int offset, int length) argument
|
H A D | FileLock.java | 79 // The lock length in bytes 87 * enforces the starting position, length and sharing mode of the lock. 94 * the length of the lock in number of bytes. 126 * Returns the length of the file lock in bytes. 151 * @param length 152 * the length of the comparative lock. 155 public final boolean overlaps(long start, long length) { argument 157 final long newEnd = start + length - 1;
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | MalformedInputException.java | 32 // the length of the malformed input 38 * @param length 39 * the length of the malformed input. 41 public MalformedInputException(int length) { argument 42 this.inputLength = length; 46 * Gets the length of the malformed input. 48 * @return the length of the malformed input.
|
H A D | UnmappableCharacterException.java | 32 // The length of the unmappable character 38 * @param length 39 * the length of the unmappable character. 41 public UnmappableCharacterException(int length) { argument 42 this.inputLength = length; 46 * Returns the length of the unmappable character.
|
/libcore/luni/src/main/native/ |
H A D | ExecStrings.cpp | 32 jsize length = env_->GetArrayLength(java_array_); local 33 array_ = new char*[length + 1]; 34 array_[length] = NULL; 35 for (jsize i = 0; i < length; ++i) { 54 jsize length = env_->GetArrayLength(java_array_); local 55 for (jsize i = 0; i < length; ++i) {
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | CharsetBenchmark.java | 25 private int length; field in class:CharsetBenchmark 44 byte[] bytes = makeBytes(makeString(length)); 51 byte[] bytes = makeBytes(makeString(length)); 53 new String(bytes, 0, bytes.length); 58 byte[] bytes = makeBytes(makeString(length)); 60 new String(bytes, 0, bytes.length, name); 65 String string = makeString(length); 71 private static String makeString(int length) { argument 72 StringBuilder result = new StringBuilder(length); 73 for (int i = 0; i < length; [all...] |
H A D | StringBenchmark.java | 33 private static String makeString(int length) { argument 34 StringBuilder result = new StringBuilder(length); 35 for (int i = 0; i < length; ++i) {
|
H A D | StringBuilderBenchmark.java | 28 @Param({"1", "10", "100"}) private int length; field in class:StringBuilderBenchmark 33 for (int j = 0; j < length; ++j) { 42 for (int j = 0; j < length; ++j) { 52 for (int j = 0; j < length; ++j) { 62 for (int j = 0; j < length; ++j) { 72 for (int j = 0; j < length; ++j) { 82 for (int j = 0; j < length; ++j) { 92 for (int j = 0; j < length; ++j) { 102 for (int j = 0; j < length; ++j) { 117 for (int j = 0; j < length; [all...] |
H A D | XmlEntitiesBenchmark.java | 31 @Param({"10", "100", "1000"}) int length; field in class:XmlEntitiesBenchmark 46 for (int i = 0; i < (length * entityFraction); i++) { 49 while (xmlBuilder.length() < length) {
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | Chunk.java | 25 * The "offset" and "length" fields are present so handlers can over-allocate 35 public int offset, length; // position within "data" field in class:Chunk 45 public Chunk(int type, byte[] data, int offset, int length) { argument 49 this.length = length; 61 this.length = buf.position();
|
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 29 if (s.length() != length) { 32 for (int i = 0; i < length; i++) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { argument 46 for (int i = start; i < start + length; i++) { 53 int index = hashCode & (pool.length - 1); 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length); [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | ListOfTypes.java | 35 this.types = new ArrayList<Type>(types.length); 48 int length() { method in class:ListOfTypes
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | CharsetUtils.java | 29 public static native byte[] toAsciiBytes(String s, int offset, int length); argument 35 public static native byte[] toIsoLatin1Bytes(String s, int offset, int length); argument 41 public static native byte[] toUtf8Bytes(String s, int offset, int length); argument 47 public static byte[] toBigEndianUtf16Bytes(String s, int offset, int length) { argument 48 byte[] result = new byte[length * 2]; 49 int end = offset + length; 67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument 76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
|
H A D | CountingOutputStream.java | 45 public void write(byte[] buffer, int offset, int length) throws IOException { argument 46 out.write(buffer, offset, length); 47 count += length;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ScannerParseLargeFileBenchmarkTest.java | 53 public int read(char[] buffer, int offset, int length) { argument 58 final int charsToRead = Math.min(FILE_LENGTH - count, length); 60 int contentIndex = count % CONTENT.length; 64 if (contentIndex == CONTENT.length) {
|
/libcore/luni/src/main/java/java/nio/ |
H A D | PipeImpl.java | 86 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 87 return channel.read(buffers, offset, length); 121 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 122 return channel.write(buffers, offset, length);
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 30 * retrieving data in the {@code Blob}, for querying {@code Blob} data length, 46 * Retrieves {@code length} bytes from this {@code Blob}, starting at 1-based 54 public InputStream getBinaryStream(long pos, long length) throws SQLException; argument 62 * @param length 65 * at {@code pos} and is up to {@code length} bytes long. 69 public byte[] getBytes(long pos, int length) throws SQLException; argument 74 * @return a {@code long} value with the length of the {@code Blob} in 79 public long length() throws SQLException; method in interface:Blob 162 * the length of data to write in number of bytes. 172 * Truncate the value of this {@code Blob} object to a specified length i [all...] |
H A D | Clob.java | 32 * retrieving data in the {@code Clob}, for querying {@code Clob} data length, 62 * @param length 63 * the length of the data to retrieve. 68 public String getSubString(long pos, int length) throws SQLException; argument 77 public long length() throws SQLException; method in interface:Clob 173 * the length in characters giving the place to 190 * Returns a {@link Reader} that reads {@code length} characters from this clob, starting 193 public Reader getCharacterStream(long pos, long length) throws SQLException; argument
|