Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java42 String comment; field in ZipEntry
70 ZipEntry(String name, String comment, long crc, long compressedSize, in ZipEntry() argument
74 this.comment = comment; in ZipEntry()
107 return comment; in getComment()
200 public void setComment(String comment) { in setComment() argument
201 if (comment == null) { in setComment()
202 this.comment = null; in setComment()
205 validateStringLength("Comment", comment); in setComment()
207 this.comment = comment; in setComment()
335 comment = ze.comment; in ZipEntry()
[all …]
DZipOutputStream.java302 if (ze.comment != null) { in putNextEntry()
303 entryCommentBytes = ze.comment.getBytes(StandardCharsets.UTF_8); in putNextEntry()
356 public void setComment(String comment) { in setComment() argument
357 if (comment == null) { in setComment()
362 byte[] newCommentBytes = comment.getBytes(StandardCharsets.UTF_8); in setComment()
DZipFile.java106 private String comment; field in ZipFile
255 return comment;
427 comment = new String(commentBytes, 0, commentBytes.length, StandardCharsets.UTF_8);
/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()
DDomTest.java121 private Comment comment; field in DomTest
164 comment = (Comment) vitamins.getChildNodes().item(1); in setUp()
181 vitaminsXmlnsA, comment, vitaminc, vitamincText)); in setUp()
227 assertEquals("http://usda", comment.lookupNamespaceURI("a")); in testLookupNamespaceURIByPrefix()
259 assertEquals("http://food", comment.lookupNamespaceURI(null)); in testLookupNamespaceURIWithNullPrefix()
297 assertEquals(null, comment.lookupPrefix("http://addons")); in testLookupPrefixWithShadowedUri()
341 assertEquals("a", comment.lookupPrefix("http://usda")); in testLookupPrefixWithShadowingUri()
373 assertTrue(comment.isDefaultNamespace("http://food")); in testIsDefaultNamespace()
414 assertFalse(comment.isDefaultNamespace(null)); in testIsDefaultNamespaceNull()
512 comment.setTextContent("foobar"); in testCommentSetTextContent()
DNormalizeTest.java510 Comment comment = document.createComment(""); in testInvalidCharactersComment() local
511 root.appendChild(comment); in testInvalidCharactersComment()
514 comment.setData(new String(new char[] { 'A', 'B', (char) c})); in testInvalidCharactersComment()
/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/main/java/java/util/
DProperties.java493 public void save(OutputStream out, String comment) { in save() argument
495 store(out, comment); in save()
523 public synchronized void store(OutputStream out, String comment) throws IOException { in store() argument
524 store(new OutputStreamWriter(out, "ISO-8859-1"), comment); in store()
537 public synchronized void store(Writer writer, String comment) throws IOException { in store() argument
538 if (comment != null) { in store()
540 writer.write(comment); in store()
668 public void storeToXML(OutputStream os, String comment) throws IOException { in storeToXML() argument
669 storeToXML(os, comment, "UTF-8"); in storeToXML()
690 public synchronized void storeToXML(OutputStream os, String comment, in storeToXML() argument
[all …]
/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/luni/src/main/java/java/net/
DHttpCookie.java319 if (name.equals("comment") && cookie.comment == null) { in setAttribute()
320 cookie.comment = value; in setAttribute()
439 private String comment;
499 return comment;
596 public void setComment(String comment) {
597 this.comment = comment;
/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/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java174 String comment = makeString(17, "z"); in testCommentAndExtraInSameOrder() local
181 ze.setComment(comment); in testCommentAndExtraInSameOrder()
189 assertEquals(comment, zipFile.getEntry("x").getComment()); in testCommentAndExtraInSameOrder()
/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.java410 CommentImpl comment = (CommentImpl) node;
412 comment.getParentNode().removeChild(comment);
415 if (comment.containsDashDash()) {
418 checkTextValidity(comment.buffer);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
DDefaultHandler2Test.java84 h.comment("<!-- Comment -->".toCharArray(), 0, 15); in testComment()
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlSerializer.java305 void comment (String text) in comment() method
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java590 public void comment(String comment) throws IOException { in comment() argument
593 writer.write(comment); in comment()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMockHandler.java119 public void comment(char[] ch, int start, int length) throws SAXException { in comment() method in MockHandler
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp686 static void comment(void* data, const char* comment) { in comment() function
687 bufferAndInvoke(commentMethod, data, comment, strlen(comment)); in comment()
994 XML_SetCommentHandler(parser, comment); in ExpatParser_initialize()

12