MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / read

Method read

src/main/java/core/packetproxy/gui/WrapEditorKit.java:57–69  ·  view source on GitHub ↗
(Reader in, Document doc, int pos)

Source from the content-addressed store, hash-verified

55 }
56
57 @Override
58 public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException {
59 char[] buff = new char[4096];
60 int nch;
61 AttributeSet attr = getInputAttributes();
62 savedBuf = new char[]{};
63 while ((nch = in.read(buff, 0, buff.length)) != -1) {
64
65 doc.insertString(pos, new String(buff, 0, nch), attr);
66 savedBuf = ArrayUtils.addAll(savedBuf, ArrayUtils.subarray(buff, 0, nch));
67 pos += nch;
68 }
69 }
70
71 @Override
72 public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException {

Callers 15

callMethod · 0.45
receiveMethod · 0.45
runMethod · 0.45
runMethod · 0.45
executeCmdMethod · 0.45
executeExeMethod · 0.45
executeRubyMethod · 0.45
readfileMethod · 0.45
ungzipMethod · 0.45

Calls 1

addAllMethod · 0.45

Tested by

no test coverage detected