Fixed typo

This commit is contained in:
senft-lap 2012-11-06 16:07:59 +01:00
parent 6686c28084
commit 0444724233

View File

@ -16,16 +16,16 @@ class BufferedNetworkStack {
*/
public class Element {
public int id;
public String[] cunks;
public String[] chunks;
public Element(int size, int id) {
cunks = new String[size];
chunks = new String[size];
this.id = id;
System.out.println("Created new Element, size: " + size);
}
public boolean isComplete() {
for (String s : cunks) {
for (String s : chunks) {
if (s == null || s.isEmpty()) {
return false;
}
@ -35,24 +35,15 @@ class BufferedNetworkStack {
public String toString() {
StringBuilder result = new StringBuilder(16);
for (String s : cunks) {
// if (!s.isEmpty()) {
for (String s : chunks) {
result.append(s);
// }
}
return result.toString();
}
}
private DatagramChannel channel;
protected static final byte CMD_PUSH = '0';
protected static final byte CMD_DATA = '1';
protected static final byte CMD_POP = '2';
protected static final byte CMD_PRINT = '3';
protected static final int BUF_SIZE = 4;
private Stack<String> stack;