Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java63 String comment; // optional comment string for entry field in ZipEntry
105 public ZipEntry(String name, String comment, long crc, long compressedSize, in ZipEntry() argument
109 this.comment = comment; in ZipEntry()
165 comment = e.comment; in ZipEntry()
698 public void setComment(String comment) { in setComment() argument
700 if (comment != null && comment.getBytes(StandardCharsets.UTF_8).length > 0xffff) { in setComment()
701 throw new IllegalArgumentException(comment + " too long: " + in setComment()
702 comment.getBytes(StandardCharsets.UTF_8).length); in setComment()
706 this.comment = comment; in setComment()
717 return comment; in getComment()
DZipOutputStream.java77 private byte[] comment; field in ZipOutputStream
148 public void setComment(String comment) { in setComment() argument
150 if (comment != null) { in setComment()
151 bytes = zc.getBytes(comment); in setComment()
156 this.comment = bytes; in setComment()
616 if (e.comment != null) { in writeCEN()
617 commentBytes = zc.getBytes(e.comment); in writeCEN()
723 if (comment != null) { // zip file comment in writeEND()
724 writeShort(comment.length); in writeEND()
725 writeBytes(comment, 0, comment.length); in writeEND()
/libcore/ojluni/src/test/java/util/Properties/
Dinput.txt2 # comment ending with slash \
9 # comment with leading space
10 #key = comment without line terminator
DXMLSaveLoadBasher.java59 private static void testSaveLoad(String encoding, String comment) in testSaveLoad() argument
115 originalProps.storeToXML(out, comment, encoding); in testSaveLoad()
/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/
Drecipt.dtd3 <!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
11 <!ELEMENT comment (#PCDATA)> element
/libcore/luni/src/test/resources/systemid/
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.java127 for (String comment : comments) { in androidChangedCommentsSummary()
128 int count = map.get(comment); in androidChangedCommentsSummary()
130 result.add(comment); in androidChangedCommentsSummary()
132 result.add(comment + " (x" + count + ")"); in androidChangedCommentsSummary()
/libcore/ojluni/src/main/native/
Dzip_util.c296 if (zip->comment != NULL) in freeZip()
297 free(zip->comment); in freeZip()
371 zip->comment = malloc(clen + 1); in findEND()
372 if (zip->comment == NULL) { in findEND()
375 if (readFullyAt(zfd, zip->comment, clen, pos + i + ENDHDR) in findEND()
377 free(zip->comment); in findEND()
378 zip->comment = NULL; in findEND()
381 zip->comment[clen] = '\0'; in findEND()
1119 ze->comment = NULL; in newEntry()
1195 if ((ze->comment = malloc(clen + 1)) == NULL) goto Catch; in newEntry()
[all …]
DZipFile.c253 if (zip->comment != NULL) { in ZipFile_getCommentBytes()
256 (*env)->SetByteArrayRegion(env, jba, 0, zip->clen, (jbyte*)zip->comment); in ZipFile_getCommentBytes()
286 if (ze->comment != 0) { in ZipFile_getEntryBytes()
287 len = (int)strlen(ze->comment); in ZipFile_getEntryBytes()
290 (*env)->SetByteArrayRegion(env, jba, 0, len, (jbyte*)ze->comment); in ZipFile_getEntryBytes()
/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()
/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/ojluni/src/test/java/util/Scanner/
Dinput.txt87 # is a comment and is ignored. In this example we will use a #
315 comment = Home Directories
320 # Un-comment the following and create the netlogon directory for Domain Logons
322 ; comment = Network Logon Service
329 # Un-comment the following to provide a specific roving profile share
340 comment = All Printers
350 # comment = Temporary file space
365 ; comment = Public Stuff
381 # comment = Fred's Printer
392 # comment = Fred's Service
[all …]
/libcore/luni/src/main/java/org/xml/sax/ext/
DLexicalHandler.java207 public abstract void comment (char ch[], int start, int length) in comment() method
/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