Searched refs:getBytes (Results 101 - 125 of 182) sorted by relevance

12345678

/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DFileInputStreamTest.java211 stringBytes = fileString.getBytes();
489 fos.write(fileString.getBytes());
/dalvik/libcore/sql/src/main/java/java/sql/
H A DResultSet.java464 public byte[] getBytes(int columnIndex) throws SQLException; method in interface:ResultSet
476 public byte[] getBytes(String columnName) throws SQLException; method in interface:ResultSet
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java593 byte[] ba = new byte[testString.getBytes().length];
603 BufferedReader r = new BufferedReader(new InputStreamReader(i),testString.getBytes().length);
646 BufferedReader r = new BufferedReader(new InputStreamReader(helloWorld2),testString.getBytes().length);
733 assertEquals(testString.getBytes().length,
1346 .getOutputStream()), posted.getBytes().length);
1673 String encodedString = new String(header.getBytes(), encoding);
1674 InputStream is = new ByteArrayInputStream(encodedString.getBytes());
1943 fileURLCon.getInputStream()), testString.getBytes().length);
2034 BufferedWriter out = new BufferedWriter(fstream, testString.getBytes().length);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java1248 .getBytes());
1260 os.write(respAuthenticationRequired.getBytes());
1289 os.write(plainResponse.getBytes());
1327 .getBytes());
1374 connection.getOutputStream().write(clientsData.getBytes());
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DSinkChannelTest.java82 buffer = ByteBuffer.wrap("bytes".getBytes(ISO8859_1));
83 positionedBuffer = ByteBuffer.wrap("12345bytes".getBytes(ISO8859_1));
153 final byte[] strbytes = "bytes".getBytes(ISO8859_1);
H A DFileLockTest.java280 raf.write("file lock test".getBytes());
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CertFactoryImpl.java468 pemBegin = "-----BEGIN".getBytes("UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
469 pemClose = "-----END".getBytes("UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
470 CERT_BOUND_SUFFIX = " CERTIFICATE-----".getBytes("UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java587 byte[] bytes = dns.toLowerCase().getBytes("UTF-8"); //$NON-NLS-1$
645 byte[] bytes = oid.getBytes("UTF-8"); //$NON-NLS-1$
699 byte[] ip_bytes = ip.getBytes("UTF-8"); //$NON-NLS-1$
/dalvik/libcore/security/src/test/java/tests/api/javax/security/cert/
H A DX509CertificateTest.java146 .getBytes());
154 .generateCertificate(new ByteArrayInputStream(selfSignedCert.getBytes()));
161 selfSignedCert.getBytes()));
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DSSLSessionTest.java769 ostream.write(testData.getBytes());
834 ostream.write(testData.getBytes());
870 byte[] bytes = new Base64().decode(keys.getBytes());
H A DHandshakeCompletedEventTest.java180 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes());
669 byte[] bytes = new Base64().decode(keys.getBytes());
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DPlainSocketImpl.java506 getOutputStream().write(request.getBytes(), 0, request.getLength());
516 int count = getInputStream().read(reply.getBytes(), bytesRead,
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/
H A DPKCS10CertificationRequest.java346 X509EncodedKeySpec xspec = new X509EncodedKeySpec(new DERBitString(subjectPKInfo).getBytes());
430 return sig.verify(sigBits.getBytes());
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java162 .getBytes());
181 .getBytes());
/dalvik/libcore/security/src/test/java/tests/security/cert/
H A DCertificateTest.java256 assertTrue(Arrays.equals(TestUtils.rootCert.getBytes(),cert.getEncoded()));
258 byte[] b = TestUtils.rootCert.getBytes();
H A DX509CRLTest.java81 .getBytes());
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DAttributes.java209 byte[] getBytes() { method in class:Attributes.Name
H A DManifest.java382 byte[] out = name.getBytes();
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/
H A DProcessManagerTest.java53 out.write(greeting.getBytes());
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/
H A DCharsetTest.java1043 .getBytes("iso8859-1")));
1045 cb = c1.decode(ByteBuffer.wrap("".getBytes("iso8859-1")));
1061 .getBytes("iso8859-1")));
1098 c.decode(ByteBuffer.wrap("hehe".getBytes()));
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/util/
H A DASN1Dump.java229 return indent + "DER Bit String" + "[" + ((DERBitString)obj).getBytes().length + ", " + ((DERBitString)obj).getPadBits() + "] " + System.getProperty("line.separator");
/dalvik/libcore/security/src/test/java/tests/api/java/security/
H A DPermissionCollectionTest.java138 fileOut.write(towrite.toString().getBytes());
/dalvik/libcore/security/src/test/java/tests/targets/security/
H A DKeyStoreTest.java151 encodedCertificate.getBytes()));
/dalvik/libcore/sql/src/main/java/SQLite/JDBC2y/
H A DJDBCResultSet.java451 public byte[] getBytes(int columnIndex) throws SQLException { method in class:JDBCResultSet
464 public byte[] getBytes(String columnName) throws SQLException { method in class:JDBCResultSet
466 return getBytes(col);
500 ret = getBytes(columnIndex);
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/
H A DExpatParserTest.java108 parse(new ByteArrayInputStream(SNIPPET.getBytes()),
169 parser.setInput(new ByteArrayInputStream(SNIPPET.getBytes()),
682 new ByteArrayInputStream("bob".getBytes("utf-8")));
764 out.write(response.getBytes("UTF-8"));

Completed in 692 milliseconds

12345678