public class XMLResourceGenerator extends 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(String name)
Note that calling
name(String) sets increment to
System.currentTimeMillis(). |
XMLResourceGenerator |
referral(URI reference,
int depth) |
XMLResourceGenerator |
repository(org.osgi.service.repository.Repository repository) |
XMLResourceGenerator |
resource(org.osgi.resource.Resource resource) |
XMLResourceGenerator |
resources(Collection<? extends org.osgi.resource.Resource> resources) |
void |
save(File location) |
void |
save(OutputStream out) |
public void save(File location) throws IOException
IOExceptionpublic void save(OutputStream out) throws IOException
IOExceptionpublic XMLResourceGenerator name(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(URI reference, int depth)
public XMLResourceGenerator repository(org.osgi.service.repository.Repository repository)
public XMLResourceGenerator resources(Collection<? extends org.osgi.resource.Resource> resources)
public XMLResourceGenerator resource(org.osgi.resource.Resource resource)
public XMLResourceGenerator indent(int n)
public XMLResourceGenerator compress()
Copyright © 2021. All rights reserved.