public class XMLResourceGenerator
extends java.lang.Object
http://www.osgi.org/xmlns/repository/v1.0.0 XML file. See the
Repository spec in OSGi.| Constructor and Description |
|---|
XMLResourceGenerator() |
| Modifier and Type | Method and Description |
|---|---|
XMLResourceGenerator |
compress() |
XMLResourceGenerator |
increment(long increment)
Note that calling
name(String) sets increment to
System.currentTimeMillis(). |
XMLResourceGenerator |
indent(int n) |
XMLResourceGenerator |
name(java.lang.String name)
Note that calling
name(String) sets increment to
System.currentTimeMillis(). |
XMLResourceGenerator |
referral(java.net.URI reference,
int depth) |
XMLResourceGenerator |
repository(Repository repository) |
XMLResourceGenerator |
resource(Resource resource) |
XMLResourceGenerator |
resources(java.util.Collection<? extends Resource> resources) |
void |
save(java.io.File location) |
void |
save(java.io.OutputStream out) |
public void save(java.io.File location)
throws java.io.IOException
java.io.IOExceptionpublic void save(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic XMLResourceGenerator name(java.lang.String name)
name(String) sets increment to
System.currentTimeMillis(). In order to retain backward
compatibility that is not change. Therefore, in order to specify a value
increment(long) should be called after.name - public XMLResourceGenerator increment(long increment)
name(String) sets increment to
System.currentTimeMillis(). In order to retain backward
compatibility that is not change. Therefore, in order to specify a value
increment(long) should be called after.increment - public XMLResourceGenerator referral(java.net.URI reference, int depth)
public XMLResourceGenerator repository(Repository repository)
public XMLResourceGenerator resources(java.util.Collection<? extends Resource> resources)
public XMLResourceGenerator resource(Resource resource)
public XMLResourceGenerator indent(int n)
public XMLResourceGenerator compress()
Copyright (c) aQute SARL (2000, 2019) and others. All Rights Reserved.