Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/luni/src/main/java/java/io/
DPipedOutputStream.java66 PipedInputStream stream = target; in close() local
67 if (stream != null) { in close()
68 stream.done(); in close()
82 public void connect(PipedInputStream stream) throws IOException { in connect() argument
83 if (stream == null) { in connect()
86 synchronized (stream) { in connect()
90 if (stream.isConnected) { in connect()
93 stream.establishConnection(); in connect()
94 this.target = stream; in connect()
107 PipedInputStream stream = target; in flush() local
[all …]
/libcore/luni/src/main/native/
Djava_util_zip_Deflater.cpp29 return toNativeZipStream(handle)->stream.total_in; in Deflater_getTotalInImpl()
33 return toNativeZipStream(handle)->stream.total_out; in Deflater_getTotalOutImpl()
37 return toNativeZipStream(handle)->stream.adler; in Deflater_getAdlerImpl()
57 int err = deflateInit2(&jstream->stream, level, Z_DEFLATED, windowBits, memLevel, strategy); in Deflater_createStream()
70 NativeZipStream* stream = toNativeZipStream(handle); in Deflater_deflateImpl() local
75 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off); in Deflater_deflateImpl()
76 stream->stream.avail_out = len; in Deflater_deflateImpl()
78 Bytef* initialNextIn = stream->stream.next_in; in Deflater_deflateImpl()
79 Bytef* initialNextOut = stream->stream.next_out; in Deflater_deflateImpl()
81 int err = deflate(&stream->stream, flushStyle); in Deflater_deflateImpl()
[all …]
Djava_util_zip_Inflater.cpp31 jstream->stream.adler = 1; in Inflater_createStream()
41 int err = inflateInit2(&jstream->stream, noHeader ? -DEF_WBITS : DEF_WBITS); in Inflater_createStream()
54 NativeZipStream* stream = toNativeZipStream(handle); in Inflater_setFileInputImpl() local
58 if (stream->inCap < len) { in Inflater_setFileInputImpl()
59 stream->setInput(env, NULL, 0, len); in Inflater_setFileInputImpl()
61 stream->stream.next_in = reinterpret_cast<Bytef*>(&stream->input[0]); in Inflater_setFileInputImpl()
62 stream->stream.avail_in = len; in Inflater_setFileInputImpl()
75 Bytef* dst = reinterpret_cast<Bytef*>(&stream->input[0]); in Inflater_setFileInputImpl()
90 NativeZipStream* stream = toNativeZipStream(handle); in Inflater_inflateImpl() local
95 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off); in Inflater_inflateImpl()
[all …]
Dzip.h40 z_stream stream; variable
44 stream.opaque = Z_NULL; in NativeZipStream()
45 stream.zalloc = Z_NULL; in NativeZipStream()
46 stream.zfree = Z_NULL; in NativeZipStream()
62 err = inflateSetDictionary(&stream, dictionary, len); in setDictionary()
64 err = deflateSetDictionary(&stream, dictionary, len); in setDictionary()
84 stream.next_in = reinterpret_cast<Bytef*>(&input[0]); in setInput()
85 stream.avail_in = len; in setInput()
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
DBrokenInputStream.java29 private InputStream stream; field in BrokenInputStream
33 public BrokenInputStream(InputStream stream, int offset) { in BrokenInputStream() argument
36 this.stream = stream; in BrokenInputStream()
47 return stream.read(); in read()
52 stream.close(); in close()
/libcore/luni/src/main/java/java/util/
DHashSet.java186 private void writeObject(ObjectOutputStream stream) throws IOException { in writeObject() argument
187 stream.defaultWriteObject(); in writeObject()
188 stream.writeInt(backingMap.table.length); in writeObject()
189 stream.writeFloat(HashMap.DEFAULT_LOAD_FACTOR); in writeObject()
190 stream.writeInt(size()); in writeObject()
192 stream.writeObject(e); in writeObject()
197 private void readObject(ObjectInputStream stream) throws IOException, in readObject() argument
199 stream.defaultReadObject(); in readObject()
200 int length = stream.readInt(); in readObject()
201 float loadFactor = stream.readFloat(); in readObject()
[all …]
DTreeSet.java472 private void writeObject(ObjectOutputStream stream) throws IOException { in writeObject() argument
473 stream.defaultWriteObject(); in writeObject()
474 stream.writeObject(backingMap.comparator()); in writeObject()
476 stream.writeInt(size); in writeObject()
480 stream.writeObject(it.next()); in writeObject()
486 private void readObject(ObjectInputStream stream) throws IOException, in readObject() argument
488 stream.defaultReadObject(); in readObject()
490 (Comparator<? super E>) stream.readObject()); in readObject()
491 int size = stream.readInt(); in readObject()
494 E elem = (E)stream.readObject(); in readObject()
DPropertyResourceBundle.java47 public PropertyResourceBundle(InputStream stream) throws IOException { in PropertyResourceBundle() argument
48 if (stream == null) { in PropertyResourceBundle()
52 resources.load(stream); in PropertyResourceBundle()
DIdentityHashMap.java795 private void writeObject(ObjectOutputStream stream) throws IOException {
796 stream.defaultWriteObject();
797 stream.writeInt(size);
801 stream.writeObject(entry.key);
802 stream.writeObject(entry.value);
807 private void readObject(ObjectInputStream stream) throws IOException,
809 stream.defaultReadObject();
810 int savedSize = stream.readInt();
814 K key = (K) stream.readObject();
815 put(key, (V) stream.readObject());
/libcore/luni/src/main/java/java/sql/
DSQLData.java90 public void readSQL(SQLInput stream, String typeName) throws SQLException; in readSQL() argument
113 public void writeSQL(SQLOutput stream) throws SQLException; in writeSQL() argument
/libcore/luni/src/main/java/java/security/
DCertificate.java50 public void decode(InputStream stream) throws KeyException, IOException; in decode() argument
65 public void encode(OutputStream stream) throws KeyException, IOException; in encode() argument
DDigestOutputStream.java47 public DigestOutputStream(OutputStream stream, MessageDigest digest) { in DigestOutputStream() argument
48 super(stream); in DigestOutputStream()
DDigestInputStream.java50 public DigestInputStream(InputStream stream, MessageDigest digest) { in DigestInputStream() argument
51 super(stream); in DigestInputStream()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyStoreSpi.java129 public void engineStore(OutputStream stream, char[] password) in engineStore() argument
131 if (!(stream instanceof ByteArrayOutputStream)) { in engineStore()
134 if (((ByteArrayOutputStream) stream).size() == 0) { in engineStore()
142 public void engineLoad(InputStream stream, char[] password) in engineLoad() argument
DCertificateStub.java55 public void decode(InputStream stream) throws KeyException, in decode() argument
65 public void encode(OutputStream stream) throws KeyException, in encode() argument
DTestKeyStoreSpi.java146 public void engineLoad(InputStream stream, char[] password) in engineLoad() argument
148 if (stream != null) { in engineLoad()
149 if (stream.available() == 0) in engineLoad()
227 public void engineStore(OutputStream stream, char[] password) in engineStore() argument
229 if (stream == null) { in engineStore()
/libcore/luni/src/main/java/java/nio/
DNioUtils.java71 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { in newFileChannel() argument
72 return new FileChannelImpl(stream, fd, mode); in newFileChannel()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStreamTest.java37 CipherInputStream stream = new CipherInputStream(null, new NullCipher()); in testReadBII() local
39 stream.read(new byte[1], 1, 0); in testReadBII()
/libcore/luni/src/main/java/java/util/jar/
DJarInputStream.java61 public JarInputStream(InputStream stream, boolean verify) throws IOException { in JarInputStream() argument
62 super(stream); in JarInputStream()
106 public JarInputStream(InputStream stream) throws IOException { in JarInputStream() argument
107 this(stream, true); in JarInputStream()
/libcore/luni/src/main/java/java/net/
DInet6Address.java253 private void writeObject(ObjectOutputStream stream) throws IOException { in writeObject() argument
254 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject()
265 stream.writeFields(); in writeObject()
268 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { in readObject() argument
269 ObjectInputStream.GetField fields = stream.readFields(); in readObject()
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DTrustedCertificateKeyStoreSpi.java104 @Override public void engineStore(OutputStream stream, char[] password) { in engineStore() argument
108 @Override public void engineLoad(InputStream stream, char[] password) { in engineLoad() argument
109 if (stream != null) { in engineLoad()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java49 FileOutputStream stream = new FileOutputStream(result); in makeTempFile() local
50 stream.close(); in makeTempFile()
/libcore/support/src/test/java/tests/support/
DSupport_Xml.java35 ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes()); in domOf() local
38 return builder.parse(stream); in domOf()
/libcore/dom/src/test/java/org/w3c/domts/
DJAXPDOMTestDocumentBuilderFactory.java124 InputStream stream = url.openStream(); in load() local
125 doc = builder.parse(stream, url.toString()); in load()
126 stream.close(); in load()
DJTidyDocumentBuilderFactory.java90 java.io.InputStream stream = url.openStream(); in load() local
93 new Object[] {stream, null}); in load()

1234