MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / exportData

Method exportData

src/main/java/IE/UserKeys.java:106–123  ·  view source on GitHub ↗
(KeyScheme keyScheme, String path)

Source from the content-addressed store, hash-verified

104 }
105
106 private static void exportData(KeyScheme keyScheme, String path) {
107 StringBuffer str = new StringBuffer("//UserKeys");
108/*
109 str.append("\n")
110 .append(keyScheme.getModificator().toLine())
111 .append((char) 0x09)
112 .append("// Modificator");
113*/
114 Vector keysList = keyScheme.getFullKeysList();
115 int fullSize = keyScheme.getFullSize();
116 for (int i = 0; i < fullSize; i++) {
117 str.append("\n")
118 .append(((UserKey) keysList.elementAt(i)).toLine());
119 }
120
121 FileIO file = FileIO.createConnection(path + "userkeys_" + Time.localDate() + ".txt");
122 file.writeFile(str.toString().getBytes());
123 }
124}
125
126//#endif

Callers 1

UserKeysMethod · 0.95

Calls 9

createConnectionMethod · 0.95
localDateMethod · 0.95
writeFileMethod · 0.95
getFullKeysListMethod · 0.80
getFullSizeMethod · 0.80
appendMethod · 0.80
toLineMethod · 0.80
getBytesMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected