/** * <This class describe the information of one book.> * Copyright (C) <2009> <mingkg21,ACC http://androidos.cc/dev> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ package org.geometerplus.fbreader.formats.umd; public class BookInfo { public byte type; public short pgkSeed; public String title; public String author; public String year; public String month; public String day; public String gender; public String publisher; public String vendor; public byte[] cover; public int cid; public int contentLength; public String getDate(){ StringBuffer sb = new StringBuffer(); sb.append(year); sb.append("-"); sb.append(month); sb.append("-"); sb.append(day); return sb.toString(); } }