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

Method addMessageList

src/main/java/History/HistoryAppend.java:96–109  ·  view source on GitHub ↗
(String messages, String filename)

Source from the content-addressed store, hash-verified

94 }
95
96 public void addMessageList(String messages, String filename) {
97//#ifdef DETRANSLIT
98 filename = util.DeTranslit.getInstance().get_actual_filename(filename);
99//#endif
100 filename = new File(cf.msgPath, StringUtils.replaceBadChars(filename) + ".txt").getPath();
101
102 file = FileIO.createConnection(filename);
103 file.fileWriteUtf(messages);
104 try {
105 file.close();
106 } catch (IOException ex) {
107 ex.printStackTrace();
108 }
109 }
110
111 private byte[] getBodyBytes(Msg m) {
112 String fromName = StaticData.getInstance().account.JID.getNode();

Callers 1

saveMessagesMethod · 0.80

Calls 6

replaceBadCharsMethod · 0.95
createConnectionMethod · 0.95
get_actual_filenameMethod · 0.80
fileWriteUtfMethod · 0.80
getInstanceMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected