public String readLine() throws IOException { byte[] temp = (byte[])in; //Genau hier ist mein Problem StringBuffer sb = new StringBuffer(2000); for (int a = 0; a < temp.length; a++) { if (temp[a] == LF) { return new String(sb); break; } else if (temp[a] == CR) { return new String(sb); break; } else if ((temp[a] == CR) && (temp[a + 1] == LF)) { return new String(sb); } else { sb.append(temp[a]); } }}