From 7d0d748b58711a28f1af0fabe8d399ebc067b898 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 28 Nov 2012 09:05:54 +0530 Subject: new feature: meta tag for author info is available. removed: parsers/DocumentName.java (MetaParser supersedes this Parser) added: parsers/MetaParser.java (it looks for meta info and updates them to PresentFile) modified: conversion/ConvertFile.java (now it initiates some of the PresentFile fields to null) parsers/Header.java (Meta field 'author' added) parsers/ParserList.java (added MetaParser, removed DocumentName) status/PresentFile.java (new field 'author') todo (update todo) --- parsers/DocumentName.java | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 parsers/DocumentName.java (limited to 'parsers/DocumentName.java') diff --git a/parsers/DocumentName.java b/parsers/DocumentName.java deleted file mode 100644 index 032d7c0..0000000 --- a/parsers/DocumentName.java +++ /dev/null @@ -1,39 +0,0 @@ -/*+ - * Copyright 2012 rsiddharth - * Email: - * - * This file is part of Scruf. - * - * Scruf 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. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - - -package scruf.parsers; - -import java.io.*; -import scruf.status.*; - -public class DocumentName implements Parser { - public String parse(String fileContent) { - BufferedReader read = - new BufferedReader(new StringReader(fileContent)); - try { - PresentFile.name = read.readLine(); - }catch(IOException e) { - System.err.println("Error reading string "+e); - } - fileContent = new NullIt().nullIt(fileContent,PresentFile.name); - return fileContent; - } -} -- cgit v1.2.3