MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / save

Method save

builder/index/src/main/java/util/IniParser.java:921–929  ·  view source on GitHub ↗

Prints this section to a print writer. @param writer where to write @throws IOException at an I/O problem

(PrintWriter writer)

Source from the content-addressed store, hash-verified

919 * @throws IOException at an I/O problem
920 */
921 public void save(PrintWriter writer) throws IOException {
922 Iterator<Line> it = this.lines.iterator();
923 while (it.hasNext()) {
924 writer.println(it.next().toString());
925 }
926 if (writer.checkError()) {
927 throw new IOException();
928 }
929 }
930
931 /**
932 * Returns an actual Option instance.

Callers 1

saveMethod · 0.95

Calls 2

nextMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected