Searched refs:comment (Results 1 - 25 of 30) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/zip/
H A DZipEntry.java59 String comment; // optional comment string for entry field in class:ZipEntry
79 public ZipEntry(String name, String comment, long crc, long compressedSize, argument
83 this.comment = comment;
154 comment = e.comment;
565 * Sets the optional comment string for the entry.
568 * specified comment string is greater than 0xFFFF bytes after encoding, only
571 * @param comment th
575 setComment(String comment) argument
[all...]
H A DZipOutputStream.java78 private byte[] comment; field in class:ZipOutputStream
143 * Sets the ZIP file comment.
144 * @param comment the comment string
146 * ZIP file comment is greater than 0xFFFF bytes
148 public void setComment(String comment) { argument
149 if (comment != null) {
150 this.comment = zc.getBytes(comment);
151 if (this.comment
[all...]
H A DZipFile.java184 * be used to decode the ZIP entry name and comment that are not
267 * be used to decode the ZIP entry name and comment that are not
291 * used to decode the ZIP entry name and comment (ignored if
307 * Returns the zip file comment, or null if none.
309 * @return the comment string for the zip file, or null if none
611 e.comment = null;
614 e.comment = zc.toStringUTF8(bcomm, bcomm.length);
616 e.comment = zc.toString(bcomm, bcomm.length);
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DLexicalHandler.java194 * Report an XML comment anywhere in the document.
202 * @param ch An array holding the characters in the comment.
207 public abstract void comment (char ch[], int start, int length) method in interface:LexicalHandler
H A DDefaultHandler2.java70 public void comment (char ch [], int start, int length) method in class:DefaultHandler2
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DimportNode03.java38 * Create a comment node with value being the string "this is a comment" in
40 * this document. Method should return a comment node whose value matches
72 Comment comment;
80 comment = aNewDoc.createComment("this is a comment");
81 aNode = doc.importNode(comment, false);
88 assertEquals("nodeValue", "this is a comment", value);
H A DimportNode04.java43 * comment value "descendant1".
74 Comment comment;
82 comment = aNewDoc.createComment("descendant1");
83 aNode = docFrag.appendChild(comment);
H A Dnodenormalize01.java87 Comment comment;
105 comment = newDoc.createComment("comment");
129 appendedChild = element5.appendChild(comment);
/libcore/luni/src/test/java/libcore/xml/
H A DSimpleBuilderTest.java94 String comment = "";
102 comment = comment + node.getNodeValue();
107 assertEquals(" Fragile! Handle me with care! ", comment);
H A DNormalizeTest.java510 Comment comment = document.createComment("");
511 root.appendChild(comment);
514 comment.setData(new String(new char[] { 'A', 'B', (char) c}));
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipEntryTest.java256 String comment = makeString(17, "z");
267 ze.setComment(comment);
275 ze.setComment(comment);
283 assertEquals(comment, zipFile.getEntry("x").getComment());
286 assertEquals(comment, zipFile.getEntry("y").getComment());
/libcore/tools/upstream/src/main/java/libcore/
H A DCompareUpstreams.java89 match = "[empty comment]";
111 for (String comment : comments) {
112 int count = map.get(comment);
114 result.add(comment);
116 result.add(comment + " (x" + count + ")");
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DImportNode.java159 Comment comment;
167 comment = aNewDoc.createComment("this is a comment");
168 aNode = doc.importNode(comment, false);
176 assertEquals("nodeValue", "this is a comment", value);
182 Comment comment;
190 comment = aNewDoc.createComment("descendant1");
191 aNode = docFrag.appendChild(comment);
H A DNodeNormalize.java104 Comment comment;
123 comment = newDoc.createComment("comment");
147 element5.appendChild(comment);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
H A DDefaultHandler2Test.java84 h.comment("<!-- Comment -->".toCharArray(), 0, 15);
/libcore/json/src/main/java/org/json/
H A DJSONTokener.java133 // skip a /* c-style comment */
137 throw syntaxError("Unterminated comment");
143 // skip a // end-of-line comment
154 * Skip a # hash end-of-line comment. The JSON RFC doesn't
498 * a comment. If the input is exhausted before such a character can be
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlSerializer.java305 void comment (String text) method in interface:XmlSerializer
/libcore/ojluni/src/main/java/java/util/
H A DXMLUtils.java57 "<!ELEMENT properties ( comment?, entry* ) >"+
60 "<!ELEMENT comment (#PCDATA) >" +
116 entries.item(0).getNodeName().equals("comment") ? 1 : 0;
131 static void save(Properties props, OutputStream os, String comment, argument
146 if (comment != null) {
148 doc.createElement("comment"));
149 comments.appendChild(doc.createTextNode(comment));
H A DProperties.java97 * &lt;!ELEMENT properties ( comment?, entry* ) &gt;
101 * &lt;!ELEMENT comment (#PCDATA) &gt;
175 * a comment line, or hold all or some of a key-element pair. A logical
179 * {@code \}. Note that a comment line cannot be extended
180 * in this manner; every natural line that is a comment must have
181 * its own comment indicator, as described below. Lines are read from
186 * considered blank and is ignored. A comment line has an ASCII
188 * space character; comment lines are also ignored and do not
394 /* Read in a "logical line" from an InputStream/Reader, skip all comment
703 * {@code storeToXML(OutputStream os, String comment)} metho
910 storeToXML(OutputStream os, String comment) argument
955 storeToXML(OutputStream os, String comment, String encoding) argument
[all...]
/libcore/ojluni/src/main/native/
H A Dzip_util.c258 if (zip->comment != NULL)
259 free(zip->comment);
264 /* The END header is followed by a variable length comment of size < 64k. */
270 /* ENDSIG matched, however the size of file comment in it does not
333 zip->comment = malloc(clen + 1);
334 if (zip->comment == NULL) {
337 if (readFullyAt(zfd, zip->comment, clen, pos + i + ENDHDR)
339 free(zip->comment);
340 zip->comment = NULL;
343 zip->comment[cle
[all...]
H A Djava_util_zip_ZipFile.c258 if (zip->comment != NULL) {
261 (*env)->SetByteArrayRegion(env, jba, 0, zip->clen, (jbyte*)zip->comment);
291 if (ze->comment != 0) {
292 len = (int)strlen(ze->comment);
295 (*env)->SetByteArrayRegion(env, jba, 0, len, (jbyte*)ze->comment);
H A Dzip_util.h104 #define CENCOM(b) SH(b, 32) /* file comment length */
117 #define ENDCOM(b) SH(b, 20) /* size of zip file comment */
166 char *comment; /* optional zip file comment */ member in struct:jzentry
224 char *comment; /* zip file comment */ member in struct:jzfile
225 jint clen; /* length of the zip file comment */
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java414 CommentImpl comment = (CommentImpl) node;
416 comment.getParentNode().removeChild(comment);
419 if (comment.containsDashDash()) {
422 checkTextValidity(comment.buffer);
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java616 public void comment(String comment) throws IOException { argument
619 append(comment);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockHandler.java119 public void comment(char[] ch, int start, int length) throws SAXException { method in class:MockHandler
120 logger.add("comment", ch, start, length);

Completed in 808 milliseconds

12