@@ -0,0 +1,2752 @@
+package org.opencb.opencga.core.models.file;%0A%0Apublic class FileContent %7B%0A%0A    /**%0A     * File id.%0A     */%0A    private String fileId;%0A%0A    /**%0A     * Flag indicating whether the content has reached the end of file.%0A     */%0A    private boolean eof;%0A%0A    /**%0A     * Final byte of the file read.%0A     */%0A    private long offset;%0A%0A    /**%0A     * Number of bytes returned.%0A     */%0A    private int bytes;%0A%0A    /**%0A     * Number of lines skipped before starting reading.%0A     */%0A    private int skippedLines;%0A%0A    /**%0A     * Number of lines read.%0A     */%0A    private int lines;%0A%0A    /**%0A     * Partial or full content of the file.%0A     */%0A    private String content;%0A%0A    public FileContent() %7B%0A    %7D%0A%0A    public FileContent(String fileId, boolean eof, long offset, int bytes, int skippedLines, int lines, String content) %7B%0A        this.fileId = fileId;%0A        this.eof = eof;%0A        this.offset = offset;%0A        this.bytes = bytes;%0A        this.skippedLines = skippedLines;%0A        this.lines = lines;%0A        this.content = content;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        final StringBuilder sb = new StringBuilder(%22FileContent%7B%22);%0A        sb.append(%22fileId='%22).append(fileId).append('%5C'');%0A        sb.append(%22, eof=%22).append(eof);%0A        sb.append(%22, offset=%22).append(offset);%0A        sb.append(%22, bytes=%22).append(bytes);%0A        sb.append(%22, skippedLines=%22).append(skippedLines);%0A        sb.append(%22, lines=%22).append(lines);%0A        sb.append(%22, content='%22).append(content).append('%5C'');%0A        sb.append('%7D');%0A        return sb.toString();%0A    %7D%0A%0A    public String getFileId() %7B%0A        return fileId;%0A    %7D%0A%0A    public FileContent setFileId(String fileId) %7B%0A        this.fileId = fileId;%0A        return this;%0A    %7D%0A%0A    public boolean isEof() %7B%0A        return eof;%0A    %7D%0A%0A    public FileContent setEof(boolean eof) %7B%0A        this.eof = eof;%0A        return this;%0A    %7D%0A%0A    public long getOffset() %7B%0A        return offset;%0A    %7D%0A%0A    public FileContent setOffset(long offset) %7B%0A        this.offset = offset;%0A        return this;%0A    %7D%0A%0A    public int getBytes() %7B%0A        return bytes;%0A    %7D%0A%0A    public FileContent setBytes(int bytes) %7B%0A        this.bytes = bytes;%0A        return this;%0A    %7D%0A%0A    public int getSkippedLines() %7B%0A        return skippedLines;%0A    %7D%0A%0A    public FileContent setSkippedLines(int skippedLines) %7B%0A        this.skippedLines = skippedLines;%0A        return this;%0A    %7D%0A%0A    public int getLines() %7B%0A        return lines;%0A    %7D%0A%0A    public FileContent setLines(int lines) %7B%0A        this.lines = lines;%0A        return this;%0A    %7D%0A%0A    public String getContent() %7B%0A        return content;%0A    %7D%0A%0A    public FileContent setContent(String content) %7B%0A        this.content = content;%0A        return this;%0A    %7D%0A%7D%0A

implement new FileContent data model, closes #1496