@Throws(IOException::class) fun stream(os: OutputStream?) { val globals: sun.net.www.MessageHeader = entries.elementAt(0) if (globals.findValue("Signature-Version") == null) { throw JarException("Signature file requires " + "Signature-Version: 1.0 in 1st header") } val ps = PrintStream(os) globals.print(ps) for (i in 1 until entries.size()) { val mh: sun.net.www.MessageHeader = entries.elementAt(i) mh.print(ps) } }
Add a signature file at current position in a stream