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

Method addMessage

src/main/java/History/HistoryAppend.java:80–94  ·  view source on GitHub ↗
(Msg m, String filename)

Source from the content-addressed store, hash-verified

78//#endif
79
80 public void addMessage(Msg m, String filename) {
81 byte[] bodyMessage = getBodyBytes(m);
82//#ifdef DETRANSLIT
83 filename = util.DeTranslit.getInstance().get_actual_filename(filename);
84//#endif
85 filename = new File(cf.msgPath, StringUtils.replaceBadChars(filename) + ".txt").getPath();
86
87 file = FileIO.createConnection(filename);
88 file.writeFile(bodyMessage);
89 try {
90 file.close();
91 } catch (IOException ex) {
92 ex.printStackTrace();
93 }
94 }
95
96 public void addMessageList(String messages, String filename) {
97//#ifdef DETRANSLIT

Callers

nothing calls this directly

Calls 7

getBodyBytesMethod · 0.95
replaceBadCharsMethod · 0.95
createConnectionMethod · 0.95
get_actual_filenameMethod · 0.80
getInstanceMethod · 0.45
writeFileMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected