Searched refs:stream (Results 1 - 25 of 82) sorted by relevance

1234

/libcore/luni/src/main/java/java/io/
H A DPipedOutputStream.java22 * data back and forth, one creates a piped output stream and the other one
23 * creates a piped input stream.
36 * stream must be connected to a {@link PipedInputStream} before data can be
44 * {@link PipedInputStream} {@code target}. Any data written to this stream
45 * can be read from the target stream.
48 * the piped input stream to connect to.
50 * if this stream or {@code target} are already connected.
57 * Closes this stream. If this stream is connected to an input stream, th
82 connect(PipedInputStream stream) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DBrokenInputStream.java29 private InputStream stream; field in class:BrokenInputStream
33 public BrokenInputStream(InputStream stream, int offset) { argument
36 this.stream = stream;
47 return stream.read();
52 stream.close();
/libcore/luni/src/main/java/java/sql/
H A DSQLData.java67 * <li>Utilize the passed input stream to read the attributes or entries of
69 * <li>This is carried out by reading each entry from the input stream,
78 * The supplied input stream is typically initialized by the calling JDBC
81 * @param stream
82 * the {@code SQLInput} stream from which the type map data is
90 public void readSQL(SQLInput stream, String typeName) throws SQLException; argument
93 * Writes the object to a supplied {@code SQLOutput} data stream, writing it
98 * <li>Write each attribute of the SQL type to the output stream.</li>
99 * <li>Write each item by calling a method on the output stream, in the
106 * @param stream
113 writeSQL(SQLOutput stream) argument
[all...]
/libcore/luni/src/main/native/
H A Djava_util_zip_Inflater.cpp33 jstream->stream.adler = 1;
43 int err = inflateInit2(&jstream->stream, noHeader ? -DEF_WBITS : DEF_WBITS);
56 NativeZipStream* stream = toNativeZipStream(handle); local
60 if (stream->inCap < len) {
61 stream->setInput(env, NULL, 0, len);
63 stream->stream.next_in = reinterpret_cast<Bytef*>(&stream->input[0]);
64 stream->stream
92 NativeZipStream* stream = toNativeZipStream(handle); local
140 NativeZipStream* stream = toNativeZipStream(handle); local
150 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A DZipUtilities.cpp25 NativeZipStream* stream) {
28 } else if (stream != NULL && stream->stream.msg != NULL) {
29 jniThrowException(env, exceptionClassName, stream->stream.msg);
37 stream.opaque = Z_NULL;
38 stream.zalloc = Z_NULL;
39 stream.zfree = Z_NULL;
56 err = inflateSetDictionary(&stream, dictionar
24 throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, NativeZipStream* stream) argument
[all...]
H A Djava_util_zip_Deflater.cpp39 return toNativeZipStream(handle)->stream.adler;
59 int err = deflateInit2(&jstream->stream, level, Z_DEFLATED, windowBits, memLevel, strategy);
72 NativeZipStream* stream = toNativeZipStream(handle); local
77 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off);
78 stream->stream.avail_out = len;
80 Bytef* initialNextIn = stream->stream.next_in;
81 Bytef* initialNextOut = stream
115 NativeZipStream* stream = toNativeZipStream(handle); local
121 NativeZipStream* stream = toNativeZipStream(handle); local
131 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A DZipUtilities.h30 z_stream stream; member in class:NativeZipStream
50 NativeZipStream* stream);
/libcore/luni/src/main/java/java/security/cert/
H A DCertificateRevokedException.java127 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
128 stream.defaultReadObject();
130 int size = stream.readInt();
133 String oid = (String) stream.readObject();
134 boolean critical = stream.readBoolean();
135 int valueLen = stream.readInt();
137 stream.read(value);
143 private void writeObject(ObjectOutputStream stream) throws IOException { argument
144 stream.defaultWriteObject();
146 stream
[all...]
/libcore/luni/src/main/java/java/util/
H A DHashSet.java186 private void writeObject(ObjectOutputStream stream) throws IOException { argument
187 stream.defaultWriteObject();
188 stream.writeInt(backingMap.table.length);
189 stream.writeFloat(HashMap.DEFAULT_LOAD_FACTOR);
190 stream.writeInt(size());
192 stream.writeObject(e);
197 private void readObject(ObjectInputStream stream) throws IOException, argument
199 stream.defaultReadObject();
200 int length = stream.readInt();
201 float loadFactor = stream
[all...]
H A DPropertyResourceBundle.java41 * @param stream
47 public PropertyResourceBundle(InputStream stream) throws IOException { argument
48 if (stream == null) {
49 throw new NullPointerException("stream == null");
52 resources.load(stream);
H A DTreeSet.java472 private void writeObject(ObjectOutputStream stream) throws IOException { argument
473 stream.defaultWriteObject();
474 stream.writeObject(backingMap.comparator());
476 stream.writeInt(size);
480 stream.writeObject(it.next());
486 private void readObject(ObjectInputStream stream) throws IOException, argument
488 stream.defaultReadObject();
490 (Comparator<? super E>) stream.readObject());
491 int size = stream.readInt();
494 E elem = (E)stream
[all...]
/libcore/luni/src/main/java/java/security/
H A DCertificate.java41 * @param stream
46 * if an exception is thrown by accessing the provided stream.
50 public void decode(InputStream stream) throws KeyException, IOException; argument
53 * Encodes this certificate to an output stream. The
57 * @param stream
62 * if an exception is thrown by accessing the provided stream.
65 public void encode(OutputStream stream) throws KeyException, IOException; argument
H A DDigestInputStream.java31 * The message digest for this stream.
40 * given {@code stream} and the {@code digest}.
43 * {@code DigestInputStream}. All operations on such a stream will fail.
45 * @param stream
46 * the input stream.
50 public DigestInputStream(InputStream stream, MessageDigest digest) { argument
51 super(stream);
56 * Returns the message digest for this stream.
58 * @return the message digest for this stream.
65 * Sets the message digest which this stream wil
[all...]
H A DDigestOutputStream.java31 * The message digest for this stream.
40 * given {@code stream} and the {@code digest}.
42 * @param stream
43 * the output stream.
47 public DigestOutputStream(OutputStream stream, MessageDigest digest) { argument
48 super(stream);
53 * Returns the message digest for this stream.
55 * @return the message digest for this stream.
62 * Sets the message digest which this stream will use.
65 * the message digest which this stream wil
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipStressTest.java45 // We must read the stream for the JarEntry to retrieve its certificates.
86 InputStream stream = zip.getInputStream(entry);
87 int j = stream.read(buffer);
89 j = stream.read(buffer);
91 stream.close();
105 InputStream stream = zip.getInputStream(entries.nextElement());
106 int j = stream.read(buffer);
108 j = stream.read(buffer);
110 stream.close();
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherInputStreamTest.java37 CipherInputStream stream = new CipherInputStream(null, new NullCipher());
39 stream.read(new byte[1], 1, 0);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java55 public void decode(InputStream stream) throws KeyException, argument
65 public void encode(OutputStream stream) throws KeyException, argument
H A DMyKeyStoreSpi.java129 public void engineStore(OutputStream stream, char[] password) argument
131 if (!(stream instanceof ByteArrayOutputStream)) {
132 throw new IOException("Incorrect stream");
134 if (((ByteArrayOutputStream) stream).size() == 0) {
135 throw new IOException("Incorrect stream size ");
142 public void engineLoad(InputStream stream, char[] password) argument
/libcore/support/src/test/java/tests/support/
H A DSupport_Xml.java35 ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
38 return builder.parse(stream);
/libcore/luni/src/main/java/java/net/
H A DInet6Address.java253 private void writeObject(ObjectOutputStream stream) throws IOException { argument
254 ObjectOutputStream.PutField fields = stream.putFields();
265 stream.writeFields();
268 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
269 ObjectInputStream.GetField fields = stream.readFields();
H A DInetSocketAddress.java223 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
224 stream.defaultReadObject();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.java98 private ByteArrayOutputStream stream; field in class:OutputStreamTesterTest.ByteArrayOutputStreamSinkTester
105 stream = new ByteArrayOutputStream(size);
106 return stream;
110 return stream.toByteArray();
/libcore/luni/src/main/java/java/util/jar/
H A DJarInputStream.java31 * The input stream from which the JAR file to be read may be fetched. It is
58 * Constructs a new {@code JarInputStream} from an input stream.
60 * @param stream
61 * the input stream containing the JAR file.
65 * If an error occurs reading entries from the input stream.
68 public JarInputStream(InputStream stream, boolean verify) throws IOException { argument
69 super(stream);
111 * Constructs a new {@code JarInputStream} from an input stream.
113 * @param stream
114 * the input stream containin
119 JarInputStream(InputStream stream) argument
[all...]
/libcore/luni/src/main/java/javax/xml/transform/stream/
H A DStreamResult.java20 package javax.xml.transform.stream;
40 "http://javax.xml.transform.stream.StreamResult/feature";
49 * Construct a StreamResult from a byte stream. Normally,
50 * a stream should be used rather than a reader, so that
61 * Construct a StreamResult from a character stream. Normally,
62 * a stream should be used rather than a reader, so that
66 * stream, such as when using a StringWriter.
94 * a stream should be used rather than a reader, so that
105 * Get the byte stream that was set with setOutputStream.
107 * @return The byte stream tha
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DJTidyDocumentBuilderFactory.java90 java.io.InputStream stream = url.openStream();
93 new Object[] {stream, null});

Completed in 765 milliseconds

1234