Back to project page rss.
The source code is released under:
GNU General Public License
If you think the Android project rss listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * 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./*from w ww . ja v a 2 s.c o m*/ * * 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. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ package com.poloure.simplerss; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; public class IndexItem implements Serializable { private static final long serialVersionUID = 200L; public long m_uid; public String m_url; public String[] m_tags; public IndexItem(long id, String url, String... tags) { m_uid = id; m_url = url; m_tags = tags; } private void writeObject(ObjectOutputStream out) throws IOException { out.writeLong(m_uid); out.writeUTF(m_url); out.writeObject(m_tags); } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { m_uid = in.readLong(); m_url = in.readUTF(); m_tags = (String[]) in.readObject(); } }