Searched refs:out (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/io/
H A DFilterWriter.java46 protected Writer out; field in class:FilterWriter
51 * @param out a Writer object to provide the underlying stream.
52 * @throws NullPointerException if <code>out</code> is <code>null</code>
54 protected FilterWriter(Writer out) { argument
55 super(out);
56 this.out = out;
65 out.write(c);
78 out.write(cbuf, off, len);
91 out
[all...]
H A DOutputStreamWriter.java51 * Writer out
52 * = new BufferedWriter(new OutputStreamWriter(System.out));
84 * @param out
94 public OutputStreamWriter(OutputStream out, String charsetName) argument
97 super(out);
100 se = StreamEncoder.forOutputStreamWriter(out, this, charsetName);
106 * @param out An OutputStream
108 public OutputStreamWriter(OutputStream out) { argument
109 super(out);
111 se = StreamEncoder.forOutputStreamWriter(out, thi
129 OutputStreamWriter(OutputStream out, Charset cs) argument
148 OutputStreamWriter(OutputStream out, CharsetEncoder enc) argument
[all...]
H A DBufferedOutputStream.java56 * @param out the underlying output stream.
58 public BufferedOutputStream(OutputStream out) { argument
59 this(out, 8192);
67 * @param out the underlying output stream.
71 public BufferedOutputStream(OutputStream out, int size) { argument
72 super(out);
82 out.write(buf, 0, count);
122 out.write(b, off, len);
134 * output bytes to be written out to the underlying output stream.
137 * @see java.io.FilterOutputStream#out
[all...]
H A DFilterOutputStream.java49 protected OutputStream out; field in class:FilterOutputStream
55 * @param out the underlying output stream to be assigned to
56 * the field <tt>this.out</tt> for later use, or
60 public FilterOutputStream(OutputStream out) { argument
61 this.out = out;
69 * that is, it performs <tt>out.write(b)</tt>.
77 out.write(b);
131 * to be written out to the stream.
137 * @see java.io.FilterOutputStream#out
[all...]
H A DPipedInputStream.java89 * <code>in==out</code> implies the buffer is full
99 protected int out = 0; field in class:PipedInputStream
210 if (in == out)
214 out = 0;
237 if (in == out)
240 if (out < in) {
242 } else if (in < out) {
244 in = out = 0;
247 nextTransferAmount = out - in;
274 while (in == out) {
[all...]
H A DDataOutputStream.java55 * @param out the underlying output stream, to be saved for later
57 * @see java.io.FilterOutputStream#out
59 public DataOutputStream(OutputStream out) { argument
60 super(out);
85 * @see java.io.FilterOutputStream#out
88 out.write(b);
102 * @see java.io.FilterOutputStream#out
107 out.write(b, off, len);
113 * bytes to be written out to the stream.
119 * @see java.io.FilterOutputStream#out
346 writeUTF(String str, DataOutput out) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldPipedOutputStreamTest.java33 public PReader(PipedOutputStream out) { argument
35 reader = new PipedInputStream(out);
37 System.out.println("Exception setting up reader: "
66 System.out.println("Exception reading ("
83 PipedOutputStream out; field in class:OldPipedOutputStreamTest
86 out = new PipedOutputStream();
87 assertNotNull(out);
89 out.close();
99 out = new PipedOutputStream(new PipedInputStream());
100 out
[all...]
/libcore/luni/src/test/java/tests/support/
H A DMockCallback.java25 System.out.println("&lt;TH&gt;&lt;TR&gt;");
27 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;");
29 System.out.println("&lt;/TR&gt;&lt;/TH&gt;");
33 System.out.println("&lt;TR&gt;");
35 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;");
37 System.out.println("&lt;/TR&gt;");
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestKeyManager.java39 private static final PrintStream out = LOG ? System.out : new NullPrintStream(); field in class:TestKeyManager
59 out.println("TestKeyManager.<init> keyManager=" + keyManager);
64 out.print("TestKeyManager.chooseClientAlias");
65 out.print(" | keyTypes: ");
67 out.print(keyType);
68 out.print(' ');
89 out.print("TestKeyManager.chooseServerAlias");
90 out.print(" | keyType: ");
91 out
[all...]
/libcore/support/src/test/java/org/apache/harmony/testframework/
H A DCharSinkTester.java96 Writer out = create();
97 out.close();
104 Writer out = create();
106 out.write(a, 1000, 0);
107 out.write(a, 0, 0);
108 out.write(new char[] { });
110 out.close();
117 Writer out = create();
119 out.write(c);
122 out
[all...]
H A DSinkTester.java97 OutputStream out = create();
98 out.close();
105 OutputStream out = create();
107 out.write(a, 1000, 0);
108 out.write(a, 0, 0);
109 out.write(new byte[] { });
111 out.close();
118 OutputStream out = create();
120 out.write(b);
123 out
[all...]
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java92 public void printStackTrace(PrintStream out) { argument
93 super.printStackTrace(out);
94 out.println(context);
99 public void printStackTrace(PrintWriter out) { argument
100 super.printStackTrace(out);
101 out.println(context);
132 * @param out {@code non-null;} where to print to
134 public void printContext(PrintStream out) { argument
135 out.println(getMessage());
136 out
144 printContext(PrintWriter out) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DPipedOutputStreamTest.java36 public PReader(PipedOutputStream out) { argument
38 reader = new PipedInputStream(out);
40 System.out.println("Couldn't start reader");
68 System.out.println("Exception reading info");
78 PipedOutputStream out; field in class:PipedOutputStreamTest
91 out = new PipedOutputStream(new PipedInputStream());
92 out.write('b');
99 out = new PipedOutputStream();
100 rt = new Thread(reader = new PReader(out));
102 out
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DBuildStep.java54 * represents an unsuccessful path, so the certificate has been backed out
196 resultString = "Certificate backed out since path does not "
203 resultString = "Certificate backed out since path does not "
223 String out = "Internal Error\n";
227 out = resultToString(result);
228 out = out + vertex.throwableToString();
233 out = resultToString(result);
236 out = "Internal Error: Invalid step result\n";
238 return out;
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DASCIICharsetEncoderTest.java85 ByteBuffer out = ByteBuffer.allocate(10);
87 encoder.encode(CharBuffer.wrap("\ud800"), out, true));
88 assertTrue(encoder.flush(out).isMalformed());
91 out = ByteBuffer.allocate(10);
94 assertSame(CoderResult.UNDERFLOW, encoder.encode(buffer1, out, false));
99 assertTrue(encoder.encode(buffer2, out, true).isUnmappable());
140 ByteBuffer out = ByteBuffer.allocate(0x10);
144 encoder.encode(in, out, false);
146 encoder.encode(in, out, true);
147 encoder.flush(out);
[all...]
H A DCharsetEncoderTest.java139 // Commented out since the comment is wrong since MAX_BYTES > 1
213 // Commented out since the comment is wrong since MAX_BYTES > 1
283 ByteBuffer out = ByteBuffer.allocate(5);
288 encoder.flush(out);
295 encoder.encode(in, out, true);
296 out.rewind();
297 CoderResult result = encoder.flush(out);
300 encoder.flush(out);
304 encoder.encode(in, out, false);
306 encoder.flush(out);
691 assertByteArray(ByteBuffer out, byte[] expected) argument
898 assertCodingErrorAction(boolean endOfInput, ByteBuffer out, CharBuffer in, byte[] expect) argument
1046 encodeLoop(CharBuffer in, ByteBuffer out) argument
1084 implFlush(ByteBuffer out) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharsetEncoderDecoderBufferTest.java34 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with
35 * hasArray()==false. In that situation ICU may overwrite the first out-buffer.
41 CharBuffer out = CharBuffer.wrap(cBuf);
42 assertTrue(out.hasArray());
44 out, false);
51 out = ByteBuffer.wrap(bBuf).asCharBuffer();
52 assertFalse(out.hasArray());
53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true);
71 CharBuffer out
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DDeflaterOutputStream.java66 * @param out the output stream
79 public DeflaterOutputStream(OutputStream out, argument
83 super(out);
84 if (out == null || def == null) {
100 * the 4-argument constructor DeflaterOutputStream(out, def, size, false).
102 * @param out the output stream
107 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { argument
108 this(out, def, size, false);
115 * @param out the output stream
125 public DeflaterOutputStream(OutputStream out, argument
142 DeflaterOutputStream(OutputStream out, Deflater def) argument
162 DeflaterOutputStream(OutputStream out, boolean syncFlush) argument
175 DeflaterOutputStream(OutputStream out) argument
[all...]
H A DGZIPOutputStream.java59 * the 3-argument constructor GZIPOutputStream(out, size, false).
61 * @param out the output stream
67 public GZIPOutputStream(OutputStream out, int size) throws IOException { argument
68 this(out, size, false);
75 * @param out the output stream
88 public GZIPOutputStream(OutputStream out, int size, boolean syncFlush) argument
91 super(out, new Deflater(Deflater.DEFAULT_COMPRESSION, true),
104 * the 2-argument constructor GZIPOutputStream(out, false).
106 * @param out the output stream
109 public GZIPOutputStream(OutputStream out) throw argument
129 GZIPOutputStream(OutputStream out, boolean syncFlush) argument
[all...]
H A DCheckedOutputStream.java46 * @param out the output stream
49 public CheckedOutputStream(OutputStream out, Checksum cksum) { argument
50 super(out);
60 out.write(b);
73 out.write(b, off, len);
/libcore/luni/src/main/java/libcore/reflect/
H A DTypes.java93 * Appends the best {@link #toString} name for {@code c} to {@code out}.
99 public static void appendTypeName(StringBuilder out, Class<?> c) { argument
105 out.append(c.getName());
107 out.append("[]");
112 * Appends names of the {@code types} to {@code out} separated by commas.
114 public static void appendArrayGenericType(StringBuilder out, Type[] types) { argument
118 appendGenericType(out, types[0]);
120 out.append(',');
121 appendGenericType(out, types[i]);
125 public static void appendGenericType(StringBuilder out, Typ argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DStreams.java38 ByteArrayOutputStream out = new ByteArrayOutputStream();
41 out.write(buffer, 0, count);
43 return out.toByteArray();
51 StringWriter out = new StringWriter();
54 out.write(buffer, 0, count);
56 return out.toString();
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerEncoder.java42 * @param out the stream on which the DER encoding is written.
44 public void derEncode(OutputStream out) argument
/libcore/ojluni/src/main/java/java/net/
H A DSocksSocketImpl.java126 throw new SocketTimeoutException("Connect timed out");
139 BufferedOutputStream out) throws IOException {
140 return authenticate(method, in, out, 0L);
144 BufferedOutputStream out,
175 out.write(1);
176 out.write(userName.length());
178 out.write(userName.getBytes("ISO-8859-1"));
183 out.write(password.length());
185 out.write(password.getBytes("ISO-8859-1"));
190 out
138 authenticate(byte method, InputStream in, BufferedOutputStream out) argument
143 authenticate(byte method, InputStream in, BufferedOutputStream out, long deadlineMillis) argument
261 connectV4(InputStream in, OutputStream out, InetSocketAddress endpoint, long deadlineMillis) argument
510 bindV4(InputStream in, OutputStream out, InetAddress baddr, int lport) argument
[all...]
/libcore/support/src/test/java/tests/util/
H A DFieldTestFileGenerator.java36 * {@code tests.support.Support_GetPutFieldsDefaulted} must be commented out. See the
55 System.out.println("Trying to write the test file 'testFields.ser'...");
63 System.out.println("Exception occured while writing the file: " + e);
70 System.out.println("Trying to write the test file 'testFieldsDeprecated.ser'...");
78 System.out.println("Exception occured while writing the file: " + e);
85 System.out.println("Trying to write the test file 'testFieldsDefaulted.ser'...");
93 System.out.println("Exception occured while writing the file: " + e);
101 System.out.println("Success!");
103 System.out.println("Failure!");

Completed in 560 milliseconds

1234567891011>>