Home
last modified time | relevance | path

Searched refs:InputStream (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/main/java/java/io/
DSequenceInputStream.java28 import java.io.InputStream;
46 class SequenceInputStream extends InputStream {
47 Enumeration<? extends InputStream> e;
48 InputStream in;
66 public SequenceInputStream(Enumeration<? extends InputStream> e) { in SequenceInputStream()
87 public SequenceInputStream(InputStream s1, InputStream s2) { in SequenceInputStream()
88 Vector<InputStream> v = new Vector<>(2); in SequenceInputStream()
110 in = (InputStream) e.nextElement(); in nextStream()
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateFactorySpi.java28 import java.io.InputStream;
104 public abstract Certificate engineGenerateCertificate(InputStream inStream) in engineGenerateCertificate()
124 public CertPath engineGenerateCertPath(InputStream inStream) in engineGenerateCertPath()
149 public CertPath engineGenerateCertPath(InputStream inStream, in engineGenerateCertPath()
245 engineGenerateCertificates(InputStream inStream) in engineGenerateCertificates()
277 public abstract CRL engineGenerateCRL(InputStream inStream) in engineGenerateCRL()
314 (InputStream inStream) throws CRLException; in engineGenerateCRLs()
DCertificateFactory.java28 import java.io.InputStream;
363 public final Certificate generateCertificate(InputStream inStream) in generateCertificate()
402 public final CertPath generateCertPath(InputStream inStream) in generateCertPath()
425 public final CertPath generateCertPath(InputStream inStream, in generateCertPath()
488 (InputStream inStream) throws CertificateException { in generateCertificates()
521 public final CRL generateCRL(InputStream inStream) in generateCRL()
560 public final Collection<? extends CRL> generateCRLs(InputStream inStream) in generateCRLs()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DInflaterInputStreamTest.java24 import java.io.InputStream;
43 MyInflaterInputStream(InputStream in) { in MyInflaterInputStream()
47 MyInflaterInputStream(InputStream in, Inflater infl) { in MyInflaterInputStream()
51 MyInflaterInputStream(InputStream in, Inflater infl, int size) { in MyInflaterInputStream()
88 InputStream infile = Support_Resources.getStream("hyts_construOD.bin"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_Inflater()
104 InputStream infile = Support_Resources.getStream("hyts_construODI.bin"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_InflaterI()
122 try (InputStream infile = Support_Resources.getStream("hyts_construODI.bin")) { in test_ConstructorLjava_io_InputStreamLjava_util_zip_InflaterI_1()
152 InputStream is = new ByteArrayInputStream(new byte[10]); in test_markI()
165 InputStream is = new ByteArrayInputStream(new byte[10]); in test_markSupported()
179 InputStream infile = Support_Resources in test_read()
[all …]
DCheckedInputStreamTest.java22 import java.io.InputStream;
35 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_Checksum()
48 InputStream inEmp = new FileInputStream(f); in test_getChecksum()
57 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_getChecksum()
82 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_skipJ()
98 InputStream checkInput = Support_Resources in test_read()
115 InputStream checkInput = Support_Resources in test_read$byteII()
/libcore/luni/src/main/java/javax/xml/transform/stream/
DStreamSource.java23 import java.io.InputStream;
71 public StreamSource(InputStream inputStream) { in StreamSource()
88 public StreamSource(InputStream inputStream, String systemId) { in StreamSource()
153 public void setInputStream(InputStream inputStream) { in setInputStream()
163 public InputStream getInputStream() { in getInputStream()
266 private InputStream inputStream;
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertificateFactorySpi.java26 import java.io.InputStream;
66 public Certificate engineGenerateCertificate(InputStream inStream) in engineGenerateCertificate()
75 public Collection engineGenerateCertificates(InputStream inStream) in engineGenerateCertificates()
83 public CRL engineGenerateCRL(InputStream inStream) throws CRLException { in engineGenerateCRL()
91 public Collection engineGenerateCRLs(InputStream inStream) in engineGenerateCRLs()
99 public CertPath engineGenerateCertPath(InputStream inStream) in engineGenerateCertPath()
111 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) in engineGenerateCertPath()
/libcore/ojluni/src/main/java/java/util/zip/
DGZIPInputStream.java31 import java.io.InputStream;
76 public GZIPInputStream(InputStream in, int size) throws IOException { in GZIPInputStream()
99 public GZIPInputStream(InputStream in) throws IOException { in GZIPInputStream()
169 private int readHeader(InputStream this_in) throws IOException { in readHeader()
221 InputStream in = this.in; in readTrailer()
258 private long readUInt(InputStream in) throws IOException { in readUInt()
266 private int readUShort(InputStream in) throws IOException { in readUShort()
274 private int readUByte(InputStream in) throws IOException { in readUByte()
293 private void skipBytes(InputStream in, int n) throws IOException { in skipBytes()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java25 import java.io.InputStream;
37 public static InputStream getStream(String name) { in getStream()
40 InputStream result = Support_Resources.class.getResourceAsStream(path); in getStream()
112 InputStream in = Support_Resources.getStream(resourceName); in copyFile()
127 public static void copyLocalFileto(File dest, InputStream in) throws IOException { in copyLocalFileto()
137 private static int copy(InputStream in, OutputStream out) throws IOException { in copy()
150 InputStream in = new URL(url).openStream(); in getExternalLocalFile()
166 public static InputStream getResourceStream(String name) { in getResourceStream()
167 InputStream is = Support_Resources.class.getResourceAsStream(name); in getResourceStream()
185 InputStream xml = Support_Resources.class.getResourceAsStream(path); in resourceToTempFile()
[all …]
/libcore/ojluni/src/main/java/java/sql/
DPreparedStatement.java32 import java.io.InputStream;
317 void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) in setAsciiStream()
351 void setUnicodeStream(int parameterIndex, java.io.InputStream x, in setUnicodeStream()
373 void setBinaryStream(int parameterIndex, java.io.InputStream x, in setBinaryStream()
872 void setBlob(int parameterIndex, InputStream inputStream, long length) in setBlob()
997 void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) in setAsciiStream()
1019 void setBinaryStream(int parameterIndex, java.io.InputStream x, in setBinaryStream()
1070 void setAsciiStream(int parameterIndex, java.io.InputStream x) in setAsciiStream()
1094 void setBinaryStream(int parameterIndex, java.io.InputStream x) in setBinaryStream()
1198 void setBlob(int parameterIndex, InputStream inputStream) in setBlob()
DResultSet.java32 import java.io.InputStream;
450 java.io.InputStream getAsciiStream(int columnIndex) throws SQLException; in getAsciiStream()
487 java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException; in getUnicodeStream()
512 java.io.InputStream getBinaryStream(int columnIndex) in getBinaryStream()
741 java.io.InputStream getAsciiStream(String columnLabel) throws SQLException; in getAsciiStream()
776 java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException; in getUnicodeStream()
801 java.io.InputStream getBinaryStream(String columnLabel) in getBinaryStream()
1793 java.io.InputStream x, in updateAsciiStream()
1816 java.io.InputStream x, in updateBinaryStream()
2182 java.io.InputStream x, in updateAsciiStream()
[all …]
/libcore/luni/src/main/java/org/xml/sax/
DInputSource.java9 import java.io.InputStream;
115 public InputSource (InputStream byteStream) in InputSource()
236 public void setByteStream (InputStream byteStream) in setByteStream()
252 public InputStream getByteStream () in getByteStream()
335 private InputStream byteStream;
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java25 import java.io.InputStream;
84 protected MeasuringInputStream(InputStream in) { in MeasuringInputStream()
113 InputStream cin = new CipherInputStream(in, cipher); in testAvailable()
121 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testDecrypt_NullInput_Discarded()
134 InputStream in = new CipherInputStream( in testEncrypt()
146 InputStream in = new CipherInputStream( in testEncrypt_RC4()
158 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testDecrypt()
166 InputStream in = new CipherInputStream(new ByteArrayInputStream(rc4CipherText), cipher); in testDecrypt_RC4()
174 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testSkip()
178 private byte[] readAll(InputStream in) throws IOException { in readAll()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DBrokenInputStream.java20 import java.io.InputStream;
27 public class BrokenInputStream extends InputStream {
29 private InputStream stream;
33 public BrokenInputStream(InputStream stream, int offset) { in BrokenInputStream()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java27 import java.io.InputStream;
84 InputStream is = new ByteArrayInputStream(myMessage); in testDigestInputStream01()
85 InputStream dis = new DigestInputStream(is, md); in testDigestInputStream01()
102 InputStream dis = new DigestInputStream(null, null); in testDigestInputStream02()
117 InputStream is = new ByteArrayInputStream(myMessage); in testRead01()
150 InputStream is = new ByteArrayInputStream(myMessage); in testRead02()
185 InputStream is = new ByteArrayInputStream(myMessage); in testRead03()
246 InputStream is = new ByteArrayInputStream(myMessage); in testRead05()
271 InputStream is = new ByteArrayInputStream(myMessage); in testRead06()
296 InputStream is = new ByteArrayInputStream(myMessage); in testReadbyteArrayintint01()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarInputStreamTest.java22 import java.io.InputStream;
57 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_ConstructorLjava_io_InputStream()
75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_closeAfterException()
97 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry_Ex()
131 InputStream is = new URL(jarName2).openConnection().getInputStream(); in test_getManifest()
146 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry()
159 InputStream is = new URL(intJarName).openConnection() in test_JarInputStream_Integrate_Jar_getNextEntry()
175 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Class_getNextEntry()
202 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Manifest_MainAttributes_getNextEntry()
223 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipFileTest.java24 import java.io.InputStream;
31 public byte[] getAllBytesFromStream(InputStream is) throws IOException { in getAllBytesFromStream()
54 InputStream in; in test_getEntryLjava_lang_String_AndroidOnly()
84 InputStream is1 = zf.getInputStream(zf.getEntry("File1.txt")); in test_close()
85 InputStream is2 = zf.getInputStream(zf.getEntry("File2.txt")); in test_close()
127 InputStream is = null; in test_getInputStreamLjava_util_zip_ZipEntry()
148 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); in setUp()
/libcore/luni/src/main/java/libcore/io/
DStreams.java27 import java.io.InputStream;
62 public static int readSingleByte(@NonNull InputStream in) throws IOException { in readSingleByte()
101 public static void readFully(@NonNull InputStream in, @NonNull byte[] dst) throws IOException { in readFully()
113 …public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOExcep… in readFully()
147 public static @NonNull byte[] readFully(@NonNull InputStream in) throws IOException { in readFully()
167 public static @NonNull byte[] readFullyNoClose(@NonNull InputStream in) throws IOException { in readFullyNoClose()
206 public static void skipAll(InputStream in) throws IOException { in skipAll()
233 public static long skipByReading(@NonNull InputStream in, long byteCount) throws IOException { in skipByReading()
273 public static int copy(@NonNull InputStream in, @NonNull OutputStream out) throws IOException { in copy()
294 public static String readAsciiLine(InputStream in) throws IOException { in readAsciiLine()
/libcore/ojluni/annotations/hiddenapi/java/net/
DSocksSocketImpl.java64 private int readSocksReply(java.io.InputStream in, byte[] data) throws java.io.IOException { in readSocksReply()
68 private int readSocksReply(java.io.InputStream in, byte[] data, long deadlineMillis) in readSocksReply()
74 byte method, java.io.InputStream in, java.io.BufferedOutputStream out) in authenticate()
81 java.io.InputStream in, in authenticate()
89 java.io.InputStream in, in connectV4()
124 private java.io.InputStream cmdIn;
/libcore/ojluni/src/main/java/sun/misc/
DResource.java32 import java.io.InputStream;
65 public abstract InputStream getInputStream() throws IOException; in getInputStream()
72 private InputStream cis;
75 private synchronized InputStream cachedInputStream() throws IOException { in cachedInputStream()
89 InputStream in = cachedInputStream(); in getBytes()
160 InputStream in = cachedInputStream(); in getByteBuffer()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DUNIXProcess.java75 public java.io.InputStream getInputStream() { in getInputStream()
79 public java.io.InputStream getErrorStream() { in getErrorStream()
119 private java.io.InputStream stderr;
123 private java.io.InputStream stdout;
129 super((java.io.InputStream) null); in ProcessPipeInputStream()
133 private static byte[] drainInputStream(java.io.InputStream in) throws java.io.IOException { in drainInputStream()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory4Test.java30 import java.io.InputStream;
82 InputStream is = Support_Resources.getResourceStream("hyts_badpem.cer"); in test_generateCertificateLjava_io_InputStream()
102 InputStream is = certUrl.openStream(); in test_generateCertificatesLjava_io_InputStream()
124 InputStream is = certUrl.openStream(); in test_generateCRLLjava_io_InputStream()
145 InputStream is = certUrl.openStream(); in test_generateCRLsLjava_io_InputStream()
215 (InputStream) null); in testGenerateCRLs2()
252 (InputStream) null, "PkiPath"); in testGenerateCertPath1()
278 (InputStream) null); in testGenerateCertPath3()
291 (InputStream) null); in testGenerateCRL()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarInputStreamTest.java24 import java.io.InputStream;
35 InputStream is = new BufferedInputStream(new ByteArrayInputStream(new byte[0])); in test_ConstructorLjava_io_InputStreamZ()
47 public Mock_JarInputStream(InputStream in) throws IOException { in Mock_JarInputStream()
59 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_createZipEntryLjava_lang_String()
67 InputStream is = Support_Resources.getStream("Broken_entry_data.jar"); in test_read$ZII()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidByteArrayInputStreamTest.java21 import java.io.InputStream;
44 public static String read(InputStream a) throws IOException { in read()
55 public static String read(InputStream a, int x) throws IOException { in read()
64 public static String skipRead(InputStream a) throws IOException { in skipRead()
76 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamTest.java21 import java.io.InputStream;
29 InputStream in = new MockInputStream(); in test1()
37 class MockInputStream extends InputStream {

12345678910>>...16