Searched refs:stream (Results 1 - 25 of 88) 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/luni/src/test/java/tests/api/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/native/
H A Djava_util_zip_Deflater.cpp31 return toNativeZipStream(handle)->stream.total_in;
35 return toNativeZipStream(handle)->stream.total_out;
39 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
112 NativeZipStream* stream = toNativeZipStream(handle); local
118 NativeZipStream* stream = toNativeZipStream(handle); local
126 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A DZipUtilities.cpp24 NativeZipStream* stream) {
27 } else if (stream != NULL && stream->stream.msg != NULL) {
28 jniThrowException(env, exceptionClassName, stream->stream.msg);
36 stream.opaque = Z_NULL;
37 stream.zalloc = Z_NULL;
38 stream.zfree = Z_NULL;
55 err = inflateSetDictionary(&stream, dictionar
23 throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, NativeZipStream* stream) argument
[all...]
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
137 NativeZipStream* stream = toNativeZipStream(handle); local
147 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A DZipUtilities.h29 z_stream stream; member in class:NativeZipStream
47 NativeZipStream* stream);
/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/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/crypto/src/main/java/org/conscrypt/
H A DOpenSSLDSAPrivateKey.java205 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
206 stream.defaultReadObject();
208 final BigInteger g = (BigInteger) stream.readObject();
209 final BigInteger p = (BigInteger) stream.readObject();
210 final BigInteger q = (BigInteger) stream.readObject();
211 final BigInteger x = (BigInteger) stream.readObject();
221 private void writeObject(ObjectOutputStream stream) throws IOException { argument
226 stream.defaultWriteObject();
229 stream.writeObject(params.getG());
230 stream
[all...]
H A DOpenSSLDSAPublicKey.java165 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
166 stream.defaultReadObject();
168 final BigInteger g = (BigInteger) stream.readObject();
169 final BigInteger p = (BigInteger) stream.readObject();
170 final BigInteger q = (BigInteger) stream.readObject();
171 final BigInteger y = (BigInteger) stream.readObject();
181 private void writeObject(ObjectOutputStream stream) throws IOException { argument
185 stream.defaultWriteObject();
188 stream.writeObject(params.getG());
189 stream
[all...]
H A DOpenSSLSecretKey.java124 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
125 stream.defaultReadObject();
130 private void writeObject(ObjectOutputStream stream) throws IOException { argument
135 stream.defaultWriteObject();
H A DOpenSSLECPrivateKey.java151 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
152 stream.defaultReadObject();
154 byte[] encoded = (byte[]) stream.readObject();
162 private void writeObject(ObjectOutputStream stream) throws IOException { argument
167 stream.defaultWriteObject();
168 stream.writeObject(getEncoded());
H A DOpenSSLECPublicKey.java154 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
155 stream.defaultReadObject();
157 byte[] encoded = (byte[]) stream.readObject();
165 private void writeObject(ObjectOutputStream stream) throws IOException { argument
170 stream.defaultWriteObject();
171 stream.writeObject(getEncoded());
H A DTrustedCertificateKeyStoreSpi.java104 @Override public void engineStore(OutputStream stream, char[] password) { argument
108 @Override public void engineLoad(InputStream stream, char[] password) { argument
109 if (stream != null) {
H A DOpenSSLRSAPublicKey.java170 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
171 stream.defaultReadObject();
185 private void writeObject(ObjectOutputStream stream) throws IOException { argument
187 stream.defaultWriteObject();
/libcore/luni/src/main/java/java/nio/
H A DNioUtils.java46 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { argument
47 return new FileChannelImpl(stream, fd, mode);
/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
/libcore/luni/src/main/java/java/util/jar/
H A DJarInputStream.java29 * The input stream from which the JAR file to be read may be fetched. It is
51 * Constructs a new {@code JarInputStream} from an input stream.
53 * @param stream
54 * the input stream containing the JAR file.
58 * If an error occurs reading entries from the input stream.
61 public JarInputStream(InputStream stream, boolean verify) throws IOException { argument
62 super(stream);
98 * Constructs a new {@code JarInputStream} from an input stream.
100 * @param stream
101 * the input stream containin
106 JarInputStream(InputStream stream) argument
[all...]

Completed in 2114 milliseconds

1234