com.jdroid.java.parser.zip
Class ZipFileParser

java.lang.Object
  extended by com.jdroid.java.parser.zip.ZipFileParser
All Implemented Interfaces:
Parser

public class ZipFileParser
extends Object
implements Parser

Parser used to handle a file contained inside a zip.


Constructor Summary
ZipFileParser(Parser innerParser, String fileName)
           
 
Method Summary
 Object parse(InputStream inputStream)
          Parse the inputStream
 Object parse(String input)
          Parse the String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileParser

public ZipFileParser(Parser innerParser,
                     String fileName)
Parameters:
innerParser - Parser to use to handle the extracted file.
fileName - Name of the file to extract of the zip.
Method Detail

parse

public Object parse(InputStream inputStream)
Description copied from interface: Parser
Parse the inputStream

Specified by:
parse in interface Parser
Parameters:
inputStream - The inputStream to parse
Returns:
The parser response object
See Also:
Parser.parse(java.io.InputStream)

parse

public Object parse(String input)
Description copied from interface: Parser
Parse the String

Specified by:
parse in interface Parser
Parameters:
input - The input to parse
Returns:
The parser response object
See Also:
Parser.parse(java.lang.String)


Copyright © 2014. All rights reserved.