Home
last modified time | relevance | path

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

12345678910>>...14

/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()
DInputStreamReader.java71 public InputStreamReader(InputStream in) { in InputStreamReader()
94 public InputStreamReader(InputStream in, String charsetName) in InputStreamReader()
112 public InputStreamReader(InputStream in, Charset cs) { in InputStreamReader()
128 public InputStreamReader(InputStream in, CharsetDecoder dec) { in InputStreamReader()
/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/libcore/io/
DStreams.java22 import java.io.InputStream;
39 public static int readSingleByte(InputStream in) throws IOException { in readSingleByte()
59 public static void readFully(InputStream in, byte[] dst) throws IOException { in readFully()
69 …public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOExcep… in readFully()
93 public static byte[] readFully(InputStream in) throws IOException { in readFully()
104 public static byte[] readFullyNoClose(InputStream in) throws IOException { in readFullyNoClose()
131 public static void skipAll(InputStream in) throws IOException { in skipAll()
149 public static long skipByReading(InputStream in, long byteCount) throws IOException { in skipByReading()
179 public static int copy(InputStream in, OutputStream out) throws IOException { in copy()
197 public static String readAsciiLine(InputStream in) throws IOException { in readAsciiLine()
/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/luni/src/main/java/org/xml/sax/
DInputSource.java8 import java.io.InputStream;
114 public InputSource (InputStream byteStream) in InputSource()
235 public void setByteStream (InputStream byteStream) in setByteStream()
251 public InputStream getByteStream () in getByteStream()
331 private InputStream byteStream;
/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()
91 public GZIPInputStream(InputStream in) throws IOException { in GZIPInputStream()
161 private int readHeader(InputStream this_in) throws IOException { in readHeader()
213 InputStream in = this.in; in readTrailer()
250 private long readUInt(InputStream in) throws IOException { in readUInt()
258 private int readUShort(InputStream in) throws IOException { in readUShort()
266 private int readUByte(InputStream in) throws IOException { in readUByte()
285 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/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/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()
349 void setUnicodeStream(int parameterIndex, java.io.InputStream x, in setUnicodeStream()
371 void setBinaryStream(int parameterIndex, java.io.InputStream x, in setBinaryStream()
870 void setBlob(int parameterIndex, InputStream inputStream, long length) in setBlob()
995 void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) in setAsciiStream()
1017 void setBinaryStream(int parameterIndex, java.io.InputStream x, in setBinaryStream()
1068 void setAsciiStream(int parameterIndex, java.io.InputStream x) in setAsciiStream()
1092 void setBinaryStream(int parameterIndex, java.io.InputStream x) in setBinaryStream()
1196 void setBlob(int parameterIndex, InputStream inputStream) in setBlob()
DResultSet.java32 import java.io.InputStream;
448 java.io.InputStream getAsciiStream(int columnIndex) throws SQLException; in getAsciiStream()
484 java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException; in getUnicodeStream()
509 java.io.InputStream getBinaryStream(int columnIndex) in getBinaryStream()
736 java.io.InputStream getAsciiStream(String columnLabel) throws SQLException; in getAsciiStream()
770 java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException; in getUnicodeStream()
795 java.io.InputStream getBinaryStream(String columnLabel) in getBinaryStream()
1787 java.io.InputStream x, in updateAsciiStream()
1810 java.io.InputStream x, in updateBinaryStream()
2176 java.io.InputStream x, in updateAsciiStream()
[all …]
/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/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/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/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/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/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/tests/security/cert/
DCertificateFactory4Test.java30 import java.io.InputStream;
92 InputStream is = Support_Resources.getResourceStream("hyts_badpem.cer"); in test_generateCertificateLjava_io_InputStream()
112 InputStream is = certUrl.openStream(); in test_generateCertificatesLjava_io_InputStream()
134 InputStream is = certUrl.openStream(); in test_generateCRLLjava_io_InputStream()
155 InputStream is = certUrl.openStream(); in test_generateCRLsLjava_io_InputStream()
225 (InputStream) null); in testGenerateCRLs2()
262 (InputStream) null, "PkiPath"); in testGenerateCertPath1()
288 (InputStream) null); in testGenerateCertPath3()
301 (InputStream) null); in testGenerateCRL()
/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 {
/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()
DOldAndroidPushbackInputStreamTest.java21 import java.io.InputStream;
58 public static String read(InputStream a) throws IOException { in read()
69 public static String read(InputStream a, int x) throws IOException { in read()
78 public static String skipRead(InputStream a) throws IOException { in skipRead()
90 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead()

12345678910>>...14