/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | PrivateKeyImpl.java | 35 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 D | PublicKeyImpl.java | 35 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/luni/src/main/java/org/xml/sax/ext/ |
H A D | Locator2Impl.java | 29 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 D | PolicyQualifierInfoTest.java | 76 // 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 D | MyFailingCertPath.java | 7 public MyFailingCertPath(byte[] encoding) { argument 8 super(encoding);
|
H A D | MyCertPath.java | 50 * 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 D | MyFailingCertificate.java | 7 public MyFailingCertificate(String type, byte[] encoding) { argument 8 super(type, encoding);
|
H A D | MyCertificate.java | 43 // 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 D | MyCertificateFactorySpi.java | 111 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) argument 116 if (encoding.length() == 0) {
|
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | InputSource.java | 24 * 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 D | Handler.java | 55 private String encoding; field in class:Handler 129 * Set the character encoding used by this <tt>Handler</tt>. 131 * The encoding should be set before any <tt>LogRecords</tt> are written 134 * @param encoding The name of a supported character encoding. 135 * May be null, to indicate the default platform encoding. 138 * @exception UnsupportedEncodingException if the named encoding is 141 public void setEncoding(String encoding) argument 144 if (encoding != null) { 146 if(!java.nio.charset.Charset.isSupported(encoding)) { [all...] |
H A D | StreamHandler.java | 53 * <li> java.util.logging.StreamHandler.encoding 54 * the name of the character set encoding to use (defaults to 55 * the default platform encoding). 78 setEncoding(manager.getStringProperty(cname +".encoding", null)); 131 String encoding = getEncoding(); 132 if (encoding == null) { 136 writer = new OutputStreamWriter(output, encoding); 139 // should have validated that the encoding is OK. 146 * Set (or change) the character encoding used by this <tt>Handler</tt>. 148 * The encoding shoul 158 setEncoding(String encoding) argument [all...] |
H A D | XMLFormatter.java | 41 * character encoding can be set on the output Handler. 231 String encoding; 235 encoding = h.getEncoding(); 237 encoding = null; 240 if (encoding == null) { 241 // Figure out the default encoding. 242 encoding = java.nio.charset.Charset.defaultCharset().name(); 244 // Try to map the encoding name to a canonical name. 246 Charset cs = Charset.forName(encoding); 247 encoding [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | DistributionPointName.java | 127 * @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/provider/ |
H A D | X509Factory.java | 91 byte[] encoding = readOneBlock(is); 92 if (encoding != null) { 93 X509CertImpl cert = (X509CertImpl)getFromCache(certCache, encoding); 97 cert = new X509CertImpl(encoding); 148 byte[] encoding; 150 encoding = ((X509CertImpl)c).getEncodedInternal(); 152 encoding = c.getEncoded(); 154 X509CertImpl newC = (X509CertImpl)getFromCache(certCache, encoding); 161 newC = new X509CertImpl(encoding); 162 encoding 201 getFromCache(Cache cache, byte[] encoding) argument 211 addToCache(Cache cache, byte[] encoding, Object value) argument 262 engineGenerateCertPath(InputStream inStream, String encoding) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ObjectIdentifier.java | 60 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 D | NetworkClient.java | 64 /* 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 D | KeyStoreTestSupport.java | 119 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 D | LSOutput.java | 19 * 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 D | LSInput.java | 20 * 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 D | KXmlSerializer.java | 49 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 D | OldAndroidLocaleTest.java | 162 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 D | ExpatParser.java | 60 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 D | CertificateFactorySpi.java | 81 * 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/xml/src/main/java/org/xmlpull/v1/ |
H A D | XmlSerializer.java | 92 * Set to use binary output stream with given encoding. 94 void setOutput (OutputStream os, String encoding) argument 99 * <p><b>WARNING</b> no information about encoding is available! 105 * Write <?xml declaration with encoding (if encoding not null) 109 void startDocument (String encoding, Boolean standalone) argument
|