blob: cdeb93c972945e652be18f6e8a8aeca04669cca6 [file] [log] [blame]
package aQute.bnd.component;
import java.io.*;
import aQute.bnd.osgi.*;
import aQute.lib.tag.*;
class TagResource extends WriteResource {
final Tag tag;
public TagResource(Tag tag) {
this.tag = tag;
}
public void write(OutputStream out) throws UnsupportedEncodingException {
OutputStreamWriter ow = new OutputStreamWriter(out, "UTF-8");
PrintWriter pw = new PrintWriter(ow);
pw.println("<?xml version='1.1'?>");
try {
tag.print(0, pw);
}
finally {
pw.flush();
}
}
public long lastModified() {
return 0;
}
}