Searched refs:encoding (Results 1 - 25 of 58) sorted by relevance

123

/libcore/luni/src/main/java/org/apache/harmony/security/
H A DPrivateKeyImpl.java35 private byte[] encoding; field in class:PrivateKeyImpl
51 byte[] toReturn = new byte[encoding.length];
52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length);
61 public void setEncoding(byte[] encoding) { argument
62 this.encoding = new byte[encoding.length];
63 System.arraycopy(encoding, 0, this.encoding, 0, encoding
[all...]
H A DPublicKeyImpl.java35 private byte[] encoding; field in class:PublicKeyImpl
56 byte[] result = new byte[encoding.length];
57 System.arraycopy(encoding, 0, result, 0, encoding.length);
67 public void setEncoding(byte[] encoding) { argument
68 this.encoding = new byte[encoding.length];
69 System.arraycopy(encoding, 0, this.encoding, 0, encoding
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/
H A DX509Factory.java92 byte[] encoding = readOneBlock(is);
93 if (encoding != null) {
94 X509CertImpl cert = getFromCache(certCache, encoding);
98 cert = new X509CertImpl(encoding);
149 * encoding for certificate data.
157 byte[] encoding;
159 encoding = ((X509CertImpl)c).getEncodedInternal();
161 encoding = c.getEncoded();
163 X509CertImpl newC = getFromCache(certCache, encoding);
170 newC = new X509CertImpl(encoding);
216 getFromCache(Cache<K,V> cache, byte[] encoding) argument
225 addToCache(Cache<Object, V> cache, byte[] encoding, V value) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DLocator2Impl.java29 private String encoding; field in class:Locator2Impl
43 * <em>encoding</em> and <em>version</em>strings are copied,
55 encoding = l2.getEncoding ();
74 * Returns the current value of the encoding property.
76 * @return the current value of the encoding property.
81 { return encoding; }
98 * Assigns the current value of the encoding property.
100 * @param encoding the new "encoding" value
103 public void setEncoding (String encoding) argument
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DPolicyQualifierInfoTest.java76 // get valid encoding
77 byte[] encoding = getDerEncoding();
79 encoding[1] = (byte)0x27;
83 new PolicyQualifierInfo(encoding);
89 // get valid encoding
90 encoding = getDerEncoding();
93 encoding[2] = (byte)13;
96 new PolicyQualifierInfo(encoding);
110 // get valid encoding
111 byte[] encoding
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyFailingCertPath.java7 public MyFailingCertPath(byte[] encoding) { argument
8 super(encoding);
H A DMyCertPath.java50 * my cert path the only encoding
52 private final byte[] encoding; field in class:MyCertPath
58 public MyCertPath(byte[] encoding) { argument
60 this.encoding = encoding;
62 certificates.add(new MyCertificate("MyEncoding", encoding));
81 return encoding.clone();
86 * <code>encoding</code> parameter
88 * if <code>encoding</code> not equals "MyEncoding"
91 public byte[] getEncoded(String encoding) argument
[all...]
H A DMyFailingCertificate.java7 public MyFailingCertificate(String type, byte[] encoding) { argument
8 super(type, encoding);
H A DMyCertificate.java43 // MyCertificate encoding
44 private final byte[] encoding; field in class:MyCertificate
52 * @param encoding
54 public MyCertificate(String type, byte[] encoding) { argument
57 this.encoding = encoding;
61 * Returns <code>MyCertificate</code> encoding
65 return encoding.clone();
H A DMyCertificateFactorySpi.java111 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) argument
116 if (encoding.length() == 0) {
/libcore/luni/src/main/java/org/xml/sax/
H A DInputSource.java24 * with a specified encoding), and/or a character stream.</p>
34 * encoding declaration found in that stream.
37 * encoding specified in the InputSource or else (if no encoding is
38 * specified) autodetecting the character encoding using an algorithm
81 * the character encoding, if known.</p>
105 * character encoding.</p>
181 * <p>If the application knows the character encoding of the
183 * the encoding using the setEncoding method.</p>
203 * <p>The getEncoding method will return the character encoding
272 setEncoding(String encoding) argument
332 private String encoding; field in class:InputSource
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DHandler.java63 private volatile String encoding; field in class:Handler
137 * Set the character encoding used by this <tt>Handler</tt>.
139 * The encoding should be set before any <tt>LogRecords</tt> are written
142 * @param encoding The name of a supported character encoding.
143 * May be null, to indicate the default platform encoding.
146 * @exception UnsupportedEncodingException if the named encoding is
149 public synchronized void setEncoding(String encoding) argument
152 if (encoding != null) {
154 if(!java.nio.charset.Charset.isSupported(encoding)) {
[all...]
H A DStreamHandler.java55 * <li> &lt;handler-name&gt;.encoding
56 * the name of the character set encoding to use (defaults to
57 * the default platform encoding). </li>
91 setEncoding(manager.getStringProperty(cname +".encoding", null));
144 String encoding = getEncoding();
145 if (encoding == null) {
149 writer = new OutputStreamWriter(output, encoding);
152 // should have validated that the encoding is OK.
159 * Set (or change) the character encoding used by this <tt>Handler</tt>.
161 * The encoding shoul
172 setEncoding(String encoding) argument
[all...]
H A DXMLFormatter.java41 * character encoding can be set on the output Handler.
232 String encoding;
236 encoding = h.getEncoding();
238 encoding = null;
241 if (encoding == null) {
242 // Figure out the default encoding.
243 encoding = java.nio.charset.Charset.defaultCharset().name();
245 // Try to map the encoding name to a canonical name.
247 Charset cs = Charset.forName(encoding);
248 encoding
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DDistributionPointName.java127 * @param encoding the DER-encoded value.
130 public DistributionPointName(DerValue encoding) throws IOException { argument
132 if (encoding.isContextSpecific(TAG_FULL_NAME) &&
133 encoding.isConstructed()) {
135 encoding.resetTag(DerValue.tag_Sequence);
136 fullName = new GeneralNames(encoding);
138 } else if (encoding.isContextSpecific(TAG_RELATIVE_NAME) &&
139 encoding.isConstructed()) {
141 encoding.resetTag(DerValue.tag_Set);
142 relativeName = new RDN(encoding);
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DObjectIdentifier.java60 private byte[] encoding = null; field in class:ObjectIdentifier
75 * New version use the new filed "encoding" only.
80 * 2. old -> new: There's no "encoding" field, new readObject() reads
82 * 3. new -> new: "encoding" field exists, new readObject() uses it
113 if (encoding == null) { // from an old version
200 encoding = new byte[pos];
201 System.arraycopy(tmp, 0, encoding, 0, pos);
228 * The encoding of the ID in the stream uses "DER", a BER/1 subset.
244 * one byte of encoding. Verify that the tag of this datum
247 * Then get and check the length of the ID's encoding
601 check(byte[] encoding) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/
H A DNetworkClient.java64 /* Name of encoding to use for output */
65 protected static String encoding; field in class:NetworkClient
76 encs[0] = System.getProperty("file.encoding", "ISO8859_1");
87 encoding = encs[0];
89 if (!isASCIISuperset (encoding)) {
90 encoding = "ISO8859_1";
93 encoding = "ISO8859_1";
99 * Test the named character encoding to verify that it converts ASCII
100 * characters correctly. We have to use an ASCII based encoding, or else
116 private static boolean isASCIISuperset (String encoding) throw argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DKeyStoreTestSupport.java119 private final byte[] encoding; field in class:KeyStoreTestSupport.MCertificate
123 public MCertificate(String type, byte[] encoding) { argument
125 this.encoding = encoding;
130 return encoding.clone();
155 return encoding;
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSOutput.java19 * stream (possibly with a specified encoding), a base URI, and/or a
88 * The character encoding to use for the output. The encoding must be a
89 * string acceptable for an XML encoding declaration ([<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>] section
97 * The character encoding to use for the output. The encoding must be a
98 * string acceptable for an XML encoding declaration ([<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>] section
104 public void setEncoding(String encoding); argument
H A DLSInput.java20 * encoding), a base URI, and/or a character stream.
63 * of the encoding attribute will be ignored.
71 * of the encoding attribute will be ignored.
78 * <br> If the application knows the character encoding of the byte
79 * stream, it should set the encoding attribute. Setting the encoding in
80 * this way will override any encoding specified in an XML declaration
87 * <br> If the application knows the character encoding of the byte
88 * stream, it should set the encoding attribute. Setting the encoding i
203 setEncoding(String encoding) argument
[all...]
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java49 private String encoding; field in class:KXmlSerializer
358 public void setOutput(OutputStream os, String encoding) argument
363 encoding == null
365 : new OutputStreamWriter(os, encoding));
366 this.encoding = encoding;
367 if (encoding != null && encoding.toLowerCase(Locale.US).startsWith("utf")) {
372 public void startDocument(String encoding, Boolean standalone) throws IOException { argument
375 if (encoding !
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidLocaleTest.java162 for (String encoding : encodings) {
163 assertTrue("Charset " + encoding + " must be supported", Charset.isSupported(encoding));
165 Charset cs = Charset.forName(encoding);
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java60 private final String encoding; field in class:ExpatParser
67 /** We default to UTF-8 when the user doesn't specify an encoding. */
77 * Constructs a new parser with the specified encoding.
79 /*package*/ ExpatParser(String encoding, ExpatReader xmlReader, argument
87 * TODO: Let Expat try to guess the encoding instead of defaulting.
88 * Unfortunately, I don't know how to tell which encoding Expat picked,
93 this.encoding = encoding == null ? DEFAULT_ENCODING : encoding;
95 this.encoding,
103 ExpatParser(String encoding, ExpatReader xmlReader, long pointer, String publicId, String systemId) argument
117 initialize(String encoding, boolean namespacesEnabled) argument
768 EntityParser(String encoding, ExpatReader xmlReader, long pointer, String publicId, String systemId) argument
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertificateFactorySpi.java81 * may be supplied in binary or printable (Base64) encoding. If the
82 * certificate is provided in Base64 encoding, it must be bounded at
110 * is assumed to be in the default encoding.
133 * is assumed to be in the specified encoding.
141 * @param encoding the encoding used for the data
145 * the encoding requested is not supported
150 String encoding) throws CertificateException
184 * by this certificate factory, with the default encoding first. See
188 * for information about standard encoding name
149 engineGenerateCertPath(InputStream inStream, String encoding) argument
[all...]
/libcore/tzdata/update2/
H A DAndroid.mk22 LOCAL_JAVACFLAGS := -encoding UTF-8
32 LOCAL_JAVACFLAGS := -encoding UTF-8

Completed in 1583 milliseconds

123