finished = true;
reply = null;
}
} else {
ByteBuffer buffer = ByteBuffer.wrap(line.getBytes());
EDFHeader header = new EDFHeader();
byte[] main = new byte[256];
buffer.get(main);
header.setMainHeader(main);
byte[] channels = new byte[header.getNumChannels() * 256];
buffer.get(channels);
header.setChannelHeader(channels);
((HeaderReply) reply).header = header;
finished = true;
}
}