Searched defs:str (Results 1 - 25 of 37) sorted by relevance

12

/libcore/luni/src/main/java/org/w3c/dom/
H A DDOMStringList.java44 * @param str The string to look for.
48 public boolean contains(String str); argument
H A DNameList.java51 * @param str The name to look for.
55 public boolean contains(String str); argument
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java36 * @param str {@code non-null;} context to add
39 public static ExceptionWithContext withContext(Throwable ex, String str) { argument
48 ewc.addContext(str);
107 * @param str {@code non-null;} new context
109 public void addContext(String str) { argument
110 if (str == null) {
111 throw new NullPointerException("str == null");
114 context.append(str);
115 if (!str.endsWith("\n")) {
/libcore/luni/src/main/java/java/io/
H A DFilterWriter.java113 * Writes {@code count} characters from the string {@code str} starting at
115 * {@code str} to the target writer.
117 * @param str
120 * the index of the first character in {@code str} to write.
122 * the number of chars in {@code str} to write.
127 public void write(String str, int offset, int count) throws IOException { argument
129 out.write(str, offset, count);
H A DStringBufferInputStream.java46 * Construct a new {@code StringBufferInputStream} with {@code str} as
50 * @param str
53 * if {@code str} is {@code null}.
55 public StringBufferInputStream(String str) { argument
56 if (str == null) {
57 throw new NullPointerException("str == null");
59 buffer = str;
60 count = str.length();
H A DBufferedWriter.java244 * Writes {@code count} characters starting at {@code offset} in {@code str}
250 * @param str
253 * the start position in {@code str} for retrieving characters.
261 * than the length of {@code str}.
264 public void write(String str, int offset, int count) throws IOException { argument
270 if (offset < 0 || offset > str.length() - count) {
271 throw new StringIndexOutOfBoundsException(str, offset, count);
275 str.getChars(offset, offset + count, chars, 0);
284 str.getChars(offset, offset + available, buf, pos);
295 str
[all...]
H A DStringReader.java29 private String str; field in class:StringReader
38 * Construct a new {@code StringReader} with {@code str} as source. The size
40 * to synchronize access through is set to {@code str}.
42 * @param str
45 public StringReader(String str) { argument
46 this.str = str;
47 this.count = str.length();
57 str = null;
66 return str
[all...]
H A DStringWriter.java142 * @param str
146 public void write(String str) { argument
147 buf.append(str);
151 * Writes {@code count} characters from {@code str} starting at {@code
154 * @param str
157 * the index of the first character in {@code str} to write.
159 * the number of characters from {@code str} to write.
162 * offset + count} is greater than the length of {@code str}.
165 public void write(String str, int offset, int count) { argument
166 String sub = str
[all...]
H A DWriter.java135 * @param str
140 public void write(String str) throws IOException { argument
141 write(str, 0, str.length());
145 * Writes {@code count} characters from {@code str} starting at {@code
148 * @param str
151 * the index of the first character in {@code str} to write.
153 * the number of characters from {@code str} to write.
158 * offset + count} is greater than the length of {@code str}.
160 public void write(String str, in argument
[all...]
H A DCharArrayWriter.java193 * the string {@code str} to this CharArrayWriter.
196 * if {@code str} is {@code null}.
200 * {@code str}.
203 public void write(String str, int offset, int count) { argument
204 if (str == null) {
205 throw new NullPointerException("str == null");
207 if ((offset | count) < 0 || offset > str.length() - count) {
208 throw new StringIndexOutOfBoundsException(str, offset, count);
212 str.getChars(offset, offset + count, buf, this.count);
H A DDataOutput.java95 * @param str
100 public abstract void writeBytes(String str) throws IOException; argument
115 * Writes the 16-bit characters contained in {@code str} in big-endian order.
117 * @param str
123 public abstract void writeChars(String str) throws IOException; argument
187 * @param str
193 public abstract void writeUTF(String str) throws IOException; argument
H A DDataOutputStream.java148 public final void writeBytes(String str) throws IOException { argument
149 if (str.length() == 0) {
152 byte[] bytes = new byte[str.length()];
153 for (int index = 0; index < str.length(); index++) {
154 bytes[index] = (byte) str.charAt(index);
164 public final void writeChars(String str) throws IOException { argument
165 byte[] bytes = str.getBytes("UTF-16BE");
196 public final void writeUTF(String str) throws IOException { argument
197 write(ModifiedUtf8.encode(str));
H A DOutputStreamWriter.java291 * Writes {@code count} characters starting at {@code offset} in {@code str}
296 * @param str
299 * the start position in {@code str} for retrieving characters.
308 * {@code str}.
311 public void write(String str, int offset, int count) throws IOException { argument
314 throw new StringIndexOutOfBoundsException(str, offset, count);
316 if (str == null) {
317 throw new NullPointerException("str == null");
319 if ((offset | count) < 0 || offset > str.length() - count) {
320 throw new StringIndexOutOfBoundsException(str, offse
[all...]
H A DPrintStream.java424 * @param str
428 public synchronized void print(String str) { argument
433 if (str == null) {
440 write(str.getBytes());
442 write(str.getBytes(encoding));
520 * @param str
524 public synchronized void println(String str) { argument
525 print(str);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java30 private static void construct(String str, String host, String path, boolean absolute) argument
32 URI uri = new URI(str);
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarInputStreamTest.java51 public ZipEntry createZipEntry(String str) { argument
52 return super.createZipEntry(str);
/libcore/support/src/test/java/tests/support/
H A DSupport_StringWriter.java142 * Writes the characters from the String <code>str</code> to this
145 * @param str
150 public void write(String str) { argument
152 buf.append(str);
158 * <code>offset</code> from the String <code>str</code> to this
161 * @param str
172 public void write(String str, int offset, int count) { argument
173 String sub = str.substring(offset, offset + count);
H A DSupport_StringReader.java24 private String str; field in class:Support_StringReader
33 * Construct a StringReader on the String <code>str</code>. The size of
35 * Object to synchronize access through is set to <code>str</code>.
37 * @param str
40 public Support_StringReader(String str) { argument
41 super(str);
42 this.str = str;
43 this.count = str.length();
56 str
[all...]
/libcore/luni/src/main/java/java/sql/
H A DClob.java142 * @param str
148 public int setString(long pos, String str) throws SQLException; argument
156 * @param str
159 * the offset within {@code str} to start writing from.
166 public int setString(long pos, String str, int offset, int len) argument
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DObjectIdentifier.java154 * @param str string representation of OID
158 public static int[] toIntArray(String str) { argument
159 return toIntArray(str, true);
168 * @param str string representation of OID
171 public static boolean isOID(String str) { argument
172 return toIntArray(str, false) != null;
182 * @param str string representation of OID
188 private static int[] toIntArray(String str, boolean shouldThrow) { argument
189 if (str == null) {
193 throw new IllegalArgumentException("str
[all...]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunkHandler.java102 public static void putString(ByteBuffer buf, String str) { argument
103 int len = str.length();
105 buf.putChar(str.charAt(i));
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
H A DAttributeValue.java118 private static boolean isPrintableString(String str) { argument
119 for (int i = 0; i< str.length(); ++i) {
120 char ch = str.charAt(i);
/libcore/luni/src/main/java/java/lang/
H A DStringBuilder.java89 * @param str
92 * if {@code str} is {@code null}.
94 public StringBuilder(String str) { argument
95 super(str);
211 * @param str
215 public StringBuilder append(String str) { argument
216 append0(str);
258 * @param str
270 public StringBuilder append(char[] str, int offset, int len) { argument
271 append0(str, offse
518 insert(int offset, String str) argument
564 insert(int offset, char[] str, int strOffset, int strLen) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldFilterWriterTest.java56 public void write(String str, int offset, int count) throws IOException { argument
/libcore/support/src/test/java/libcore/java/io/
H A DNullPrintStream.java47 public void print(String str) {} argument
57 public void println(String str) {} argument

Completed in 747 milliseconds

12