Searched refs:stream (Results 1 - 25 of 76) 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.cpp29 return toNativeZipStream(handle)->stream.total_in;
33 return toNativeZipStream(handle)->stream.total_out;
37 return toNativeZipStream(handle)->stream.adler;
57 int err = deflateInit2(&jstream->stream, level, Z_DEFLATED, windowBits, memLevel, strategy);
70 NativeZipStream* stream = toNativeZipStream(handle); local
75 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off);
76 stream->stream.avail_out = len;
78 Bytef* initialNextIn = stream
110 NativeZipStream* stream = toNativeZipStream(handle); local
116 NativeZipStream* stream = toNativeZipStream(handle); local
124 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A Djava_util_zip_Inflater.cpp31 jstream->stream.adler = 1;
41 int err = inflateInit2(&jstream->stream, noHeader ? -DEF_WBITS : DEF_WBITS);
54 NativeZipStream* stream = toNativeZipStream(handle); local
58 if (stream->inCap < len) {
59 stream->setInput(env, NULL, 0, len);
61 stream->stream.next_in = reinterpret_cast<Bytef*>(&stream->input[0]);
62 stream->stream
90 NativeZipStream* stream = toNativeZipStream(handle); local
135 NativeZipStream* stream = toNativeZipStream(handle); local
[all...]
H A Dzip.h40 z_stream stream; member in class:NativeZipStream
44 stream.opaque = Z_NULL;
45 stream.zalloc = Z_NULL;
46 stream.zfree = Z_NULL;
62 err = inflateSetDictionary(&stream, dictionary, len);
64 err = deflateSetDictionary(&stream, dictionary, len);
84 stream.next_in = reinterpret_cast<Bytef*>(&input[0]);
85 stream.avail_in = len;
/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/luni/src/main/java/java/nio/
H A DNioUtils.java71 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { argument
72 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
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/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
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) {
/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...]
/libcore/luni/src/test/java/libcore/dalvik/system/
H A DPathClassLoaderTest.java49 FileOutputStream stream = new FileOutputStream(result);
50 stream.close();
/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.java236 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument
237 stream.defaultReadObject();
/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 2754 milliseconds

1234