本文整理了Java中aQute.bnd.osgi.Jar.attributes()
方法的一些代码示例,展示了Jar.attributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jar.attributes()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Jar
类名称:Jar
方法名:attributes
[英]Output an Attributes map. We will sort this map before outputing.
[中]输出属性映射。我们将在输出之前对该地图进行排序。
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Main function to output a manifest properly in UTF-8.
*
* @param manifest The manifest to output
* @param out The output stream
* @throws IOException when something fails
*/
public static void outputManifest(Manifest manifest, OutputStream out) throws IOException {
writeEntry(out, "Manifest-Version", "1.0");
attributes(manifest.getMainAttributes(), out);
out.write(EOL);
TreeSet<String> keys = new TreeSet<>();
for (Object o : manifest.getEntries()
.keySet())
keys.add(o.toString());
for (String key : keys) {
writeEntry(out, "Name", key);
attributes(manifest.getAttributes(key), out);
out.write(EOL);
}
out.flush();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Main function to output a manifest properly in UTF-8.
*
* @param manifest The manifest to output
* @param out The output stream
* @throws IOException when something fails
*/
public static void outputManifest(Manifest manifest, OutputStream out) throws IOException {
writeEntry(out, "Manifest-Version", "1.0");
attributes(manifest.getMainAttributes(), out);
out.write(EOL);
TreeSet<String> keys = new TreeSet<>();
for (Object o : manifest.getEntries()
.keySet())
keys.add(o.toString());
for (String key : keys) {
writeEntry(out, "Name", key);
attributes(manifest.getAttributes(key), out);
out.write(EOL);
}
out.flush();
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Main function to output a manifest properly in UTF-8.
*
* @param manifest
* The manifest to output
* @param out
* The output stream
* @throws IOException
* when something fails
*/
public static void outputManifest(Manifest manifest, OutputStream out) throws IOException {
writeEntry(out, "Manifest-Version", "1.0");
attributes(manifest.getMainAttributes(), out);
TreeSet<String> keys = new TreeSet<String>();
for (Object o : manifest.getEntries().keySet())
keys.add(o.toString());
for (String key : keys) {
write(out, 0, "\r\n");
writeEntry(out, "Name", key);
attributes(manifest.getAttributes(key), out);
}
out.flush();
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Main function to output a manifest properly in UTF-8.
*
* @param manifest
* The manifest to output
* @param out
* The output stream
* @throws IOException
* when something fails
*/
public static void outputManifest(Manifest manifest, OutputStream out) throws IOException {
writeEntry(out, "Manifest-Version", "1.0");
attributes(manifest.getMainAttributes(), out);
TreeSet<String> keys = new TreeSet<String>();
for (Object o : manifest.getEntries().keySet())
keys.add(o.toString());
for (String key : keys) {
write(out, 0, "\r\n");
writeEntry(out, "Name", key);
attributes(manifest.getAttributes(key), out);
}
out.flush();
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Main function to output a manifest properly in UTF-8.
*
* @param manifest
* The manifest to output
* @param out
* The output stream
* @throws IOException
* when something fails
*/
public static void outputManifest(Manifest manifest, OutputStream out) throws IOException {
writeEntry(out, "Manifest-Version", "1.0");
attributes(manifest.getMainAttributes(), out);
TreeSet<String> keys = new TreeSet<String>();
for (Object o : manifest.getEntries().keySet())
keys.add(o.toString());
for (String key : keys) {
write(out, 0, "\r\n");
writeEntry(out, "Name", key);
attributes(manifest.getAttributes(key), out);
}
out.flush();
}
内容来源于网络,如有侵权,请联系作者删除!