Home
last modified time | relevance | path

Searched refs:comment (Results 1 – 25 of 38) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java57 String comment; // optional comment string for entry field in ZipEntry
98 public ZipEntry(String name, String comment, long crc, long compressedSize, in ZipEntry() argument
102 this.comment = comment; in ZipEntry()
157 comment = e.comment; in ZipEntry()
578 public void setComment(String comment) { in setComment() argument
580 if (comment != null && comment.getBytes(StandardCharsets.UTF_8).length > 0xffff) { in setComment()
581 throw new IllegalArgumentException(comment + " too long: " + in setComment()
582 comment.getBytes(StandardCharsets.UTF_8).length); in setComment()
586 this.comment = comment; in setComment()
597 return comment; in getComment()
DZipOutputStream.java78 private byte[] comment; field in ZipOutputStream
148 public void setComment(String comment) { in setComment() argument
149 if (comment != null) { in setComment()
150 this.comment = zc.getBytes(comment); in setComment()
151 if (this.comment.length > 0xffff) in setComment()
549 if (e.comment != null) { in writeCEN()
550 commentBytes = zc.getBytes(e.comment); in writeCEN()
639 if (comment != null) { // zip file comment in writeEND()
640 writeShort(comment.length); in writeEND()
641 writeBytes(comment, 0, comment.length); in writeEND()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DimportNode04.java74 Comment comment; in runTest() local
82 comment = aNewDoc.createComment("descendant1"); in runTest()
83 aNode = docFrag.appendChild(comment); in runTest()
DimportNode03.java72 Comment comment; in runTest() local
80 comment = aNewDoc.createComment("this is a comment"); in runTest()
81 aNode = doc.importNode(comment, false); in runTest()
Dnodenormalize01.java87 Comment comment; in runTest() local
105 comment = newDoc.createComment("comment"); in runTest()
129 appendedChild = element5.appendChild(comment); in runTest()
/libcore/luni/src/test/java/libcore/xml/
DSimpleBuilderTest.java94 String comment = ""; in testGoodFile1() local
102 comment = comment + node.getNodeValue(); in testGoodFile1()
107 assertEquals(" Fragile! Handle me with care! ", comment); in testGoodFile1()
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterface1 # this is a comment
5 libcore.java.util.ServiceLoaderTest$Impl2 # this comment is valid
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd3 <!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
11 <!ELEMENT comment (#PCDATA)> element
/libcore/luni/src/test/resources/
Drecipt.dtd3 <!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
11 <!ELEMENT comment (#PCDATA)> element
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipEntry.java37 java.lang.String comment, in ZipEntry() argument
144 public void setComment(java.lang.String comment) { in setComment() argument
178 java.lang.String comment; field in ZipEntry
DZipOutputStream.java53 public void setComment(java.lang.String comment) { in setComment() argument
135 private byte[] comment; field in ZipOutputStream
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java256 String comment = makeString(17, "z"); in testCommentAndExtraInSameOrder() local
267 ze.setComment(comment); in testCommentAndExtraInSameOrder()
275 ze.setComment(comment); in testCommentAndExtraInSameOrder()
283 assertEquals(comment, zipFile.getEntry("x").getComment()); in testCommentAndExtraInSameOrder()
286 assertEquals(comment, zipFile.getEntry("y").getComment()); in testCommentAndExtraInSameOrder()
/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java114 for (String comment : comments) { in androidChangedCommentsSummary()
115 int count = map.get(comment); in androidChangedCommentsSummary()
117 result.add(comment); in androidChangedCommentsSummary()
119 result.add(comment + " (x" + count + ")"); in androidChangedCommentsSummary()
/libcore/ojluni/src/main/native/
Dzip_util.c260 if (zip->comment != NULL) in freeZip()
261 free(zip->comment); in freeZip()
335 zip->comment = malloc(clen + 1); in findEND()
336 if (zip->comment == NULL) { in findEND()
339 if (readFullyAt(zfd, zip->comment, clen, pos + i + ENDHDR) in findEND()
341 free(zip->comment); in findEND()
342 zip->comment = NULL; in findEND()
345 zip->comment[clen] = '\0'; in findEND()
1036 ze->comment = NULL; in newEntry()
1112 if ((ze->comment = malloc(clen + 1)) == NULL) goto Catch; in newEntry()
[all …]
DZipFile.c258 if (zip->comment != NULL) { in ZipFile_getCommentBytes()
261 (*env)->SetByteArrayRegion(env, jba, 0, zip->clen, (jbyte*)zip->comment); in ZipFile_getCommentBytes()
291 if (ze->comment != 0) { in ZipFile_getEntryBytes()
292 len = (int)strlen(ze->comment); in ZipFile_getEntryBytes()
295 (*env)->SetByteArrayRegion(env, jba, 0, len, (jbyte*)ze->comment); in ZipFile_getEntryBytes()
Dzip_util.h166 char *comment; /* optional zip file comment */ member
224 char *comment; /* zip file comment */ member
/libcore/ojluni/src/main/java/java/util/
DXMLUtils.java131 static void save(Properties props, OutputStream os, String comment, in save() argument
146 if (comment != null) { in save()
149 comments.appendChild(doc.createTextNode(comment)); in save()
DProperties.java913 public void storeToXML(OutputStream os, String comment) in storeToXML() argument
916 storeToXML(os, comment, "UTF-8"); in storeToXML()
958 public void storeToXML(OutputStream os, String comment, String encoding) in storeToXML() argument
968 XMLUtils.save(this, Objects.requireNonNull(os), comment, in storeToXML()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DImportNode.java159 Comment comment; in testImportNode3() local
167 comment = aNewDoc.createComment("this is a comment"); in testImportNode3()
168 aNode = doc.importNode(comment, false); in testImportNode3()
182 Comment comment; in testImportNode4() local
190 comment = aNewDoc.createComment("descendant1"); in testImportNode4()
191 aNode = docFrag.appendChild(comment); in testImportNode4()
DNodeNormalize.java104 Comment comment; in testNormalize() local
123 comment = newDoc.createComment("comment"); in testNormalize()
147 element5.appendChild(comment); in testNormalize()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDOMConfigurationImpl.java414 CommentImpl comment = (CommentImpl) node;
416 comment.getParentNode().removeChild(comment);
419 if (comment.containsDashDash()) {
422 checkTextValidity(comment.buffer);
/libcore/ojluni/annotations/mmodule/java/util/zip/
DZipEntry.annotated.java35 public ZipEntry(java.lang.String name, java.lang.String comment, long crc, long compressedSize, lon… in ZipEntry() argument
82 public void setComment(java.lang.String comment) { throw new RuntimeException("Stub!"); } in setComment() argument
/libcore/luni/src/main/java/org/xml/sax/ext/
DLexicalHandler.java207 public abstract void comment (char ch[], int start, int length) in comment() method
DDefaultHandler2.java70 public void comment (char ch [], int start, int length) in comment() method in DefaultHandler2
/libcore/ojluni/annotations/hiddenapi/java/util/
DProperties.java97 public void storeToXML(java.io.OutputStream os, java.lang.String comment) in storeToXML() argument
103 java.io.OutputStream os, java.lang.String comment, java.lang.String encoding) in storeToXML() argument

12