public void parseStream(Reader in) throws IOException {
        LineNumberReader reader = new LineNumberReader(in);
        String line = reader.readLine();
        while (line != null){
            DelTypes type = DelTypes.getType(line);
            HandlerEvent e = new HandlerEvent(type, line);
            switch (type){
                case TYPE_TOP_DELIMITER:
                    handler.startTable(e);
                    handler.startLine(e);
                    break;
                case TYPE_MIDDLE_DELIMITER:
                    handler.endLine(e);
                    handler.startLine(e);
                    break;
                case TYPE_CONTENT:
                    handler.line(e);
                    break;
                case TYPE_BOTTOM_DELIMITER:
                    handler.endLine(e);
                    handler.endTable(e);
                    break;
            }
            line = reader.readLine();
        }
        reader.close();
    }