/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | ContentHandlerTest.java | 38 Object content = handler.getContent(conn, classes); 39 assertEquals("Foo", ((Foo) content).getFoo()); 42 content = handler.getContent(conn, classes); 43 assertEquals("FooSub", ((Foo) content).getFoo()); 47 content = handler.getContent(conn, classes2); 48 assertNull(content); 54 private Object content; field in class:ContentHandlerImpl 58 return content; 61 public void setContent(Object content) { argument 62 this.content [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | ContentHandler.java | 23 * This class converts the content of a certain format (i.e. a MIME type) into a 49 * list of acceptable content types. 51 * content doesn't match one of the specified content types. 53 * if an error occurred while obtaining the content. 59 Object content = getContent(uConn); 61 if (types[i].isInstance(content)) { 62 return content;
|
/libcore/luni/src/main/java/java/security/ |
H A D | SignedObject.java | 36 private byte[] content; field in class:SignedObject 46 byte[] tmp = new byte[content.length]; 47 System.arraycopy(content, 0, tmp, 0, content.length); 48 content = tmp; 85 content = baos.toByteArray(); 88 signingEngine.update(content); 105 content)); 153 verificationEngine.update(content);
|
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | Text.java | 17 * and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no 18 * markup inside an element's content, the text is contained in a single 31 * <p> No lexical check is done on the content of a <code>Text</code> node 34 * characters "<&" if the textual content is part of an element or of 44 * will contain all the content up to the <code>offset</code> point. A 45 * new node of the same type, which contains all the content at and 63 * element content whitespace</a>, often abusively called "ignorable whitespace". The text node is 64 * determined to contain whitespace in element content during the load 116 * @param content The content o 123 replaceWholeText(String content) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/ |
H A D | ContentInfo.java | 40 * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL 54 private final Object content; field in class:ContentInfo 57 private ContentInfo(int[] oid, Object content, byte[] encoding) { argument 59 this.content = content; 65 return (SignedData)content; 71 return content; 97 if (content != null) { 99 res.append(content.toString()); 112 setOptional(1); // content i [all...] |
H A D | AuthenticatedAttributes.java | 62 (List<AttributeTypeAndValue>) in.content);
|
/libcore/luni/src/test/java/libcore/util/ |
H A D | ZoneInfoDBTest.java | 59 byte[] content = new byte[(int) in.length()]; 60 in.readFully(content); 62 content[6] = '9'; 63 content[7] = '9'; 64 content[8] = '9'; 65 content[9] = '9'; 66 content[10] = 'z'; 70 String goodFile = makeTemporaryFile(content); 104 return makeTemporaryFile("invalid content".getBytes()); 111 private static String makeTemporaryFile(byte[] content) throw argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | ListResourceBundle.java | 120 for (Object[] content : contents) { 121 if (content[0] == null || content[1] == null) { 124 table.put((String) content[0], content[1]);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamPutFieldTest.java | 72 byte[] content; 86 content = baos.toByteArray(); 88 Arrays.equals(content, refContent)); 97 byte[] content; 111 content = baos.toByteArray(); 113 Arrays.equals(content, refContent));
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | DerOutputStream.java | 40 content = object; 50 content = val[index][1]; 56 content = val[index][0]; 74 content = values[i]; 95 content = values[i]; 118 int i = choice.getIndex(content); 119 content = choice.getObjectToEncode(content); 121 Object[] values = new Object[] { choice.type[i], content }; 127 // in case if we get content byte [all...] |
H A D | BerOutputStream.java | 42 /** Current encoded content */ 43 public Object content; field in class:BerOutputStream 70 System.arraycopy(content, 0, encoded, offset, length); 76 BitString bStr = (BitString) content; 83 if ((Boolean) content) { 100 System.arraycopy(content, 0, encoded, offset, length); 105 System.arraycopy(content, 0, encoded, offset, length); 110 System.arraycopy(content, 0, encoded, offset, length); 115 System.arraycopy(content, 0, encoded, offset, length); 121 int[] oid = (int[]) content; [all...] |
H A D | ASN1StringType.java | 47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); 48 out.content = bytes; 112 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); 113 out.content = bytes;
|
H A D | ASN1GeneralizedTime.java | 83 // trailing 0's (must be cut later from content) 89 String temp = sdf.format(out.content); 102 out.content = (temp + "Z").getBytes(StandardCharsets.UTF_8); 103 out.length = ((byte[]) out.content).length;
|
H A D | ASN1UTCTime.java | 100 out.content = sdf.format(out.content).getBytes(StandardCharsets.UTF_8); 101 out.length = ((byte[]) out.content).length;
|
H A D | ASN1Oid.java | 106 int[] oid = (int[]) out.content; 180 out.content = ObjectIdentifier.toIntArray((String) out.content);
|
H A D | ASN1Any.java | 73 // only read content, doesn't check it 105 out.length = ((byte[]) out.content).length;
|
H A D | ASN1BitString.java | 90 out.length = ((BitString) out.content).bytes.length + 1; 160 boolean[] toEncode = (boolean[]) out.content; 168 out.content = emptyString; 191 out.content = new BitString(bytes, unusedBits);
|
H A D | ASN1Enumerated.java | 86 out.length = ((byte[]) out.content).length;
|
H A D | ASN1Explicit.java | 70 in.content = type.decode(in);
|
H A D | ASN1OctetString.java | 84 out.length = ((byte[]) out.content).length;
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | TextImpl.java | 66 // constitute "element content whitespace" is defined by the containing 84 public final Text replaceWholeText(String content) throws DOMException { argument 95 // ...except the current node if we have content for it 96 if (n == this && content != null && content.length() > 0) { 97 setData(content);
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | ReasonFlags.java | 101 out.content = ((ReasonFlags) out.content).flags;
|
H A D | DistributionPointName.java | 109 result = new DistributionPointName((GeneralNames) in.content); 113 result = new DistributionPointName((Name) in.content);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | ChannelsTest.java | 51 private Pipe.SourceChannel createNonBlockingChannel(byte[] content) throws IOException { argument 54 sinkChannel.write(ByteBuffer.wrap(content));
|
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
H A D | AttributeTypeAndValue.java | 363 AttributeValue av = (AttributeValue) out.content; 366 out.content = av.encoded; 370 out.content = av.bytes; 376 AttributeValue av = (AttributeValue) out.content; 382 out.content = av.rawString; 384 av.bytes = (byte[]) out.content; 385 out.content = av; 399 AttributeValue av = (AttributeValue) out.content; 412 Object[] values = (Object[]) in.content;
|