Skip to content

Instantly share code, notes, and snippets.

@sanaulla123
Created January 12, 2013 03:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sanaulla123/4515955 to your computer and use it in GitHub Desktop.
public class XmlParser extends Parser {
@Override
public void parse(String fileName) {
if ( canHandleFile(fileName, ".xml")){
System.out.println("A XML parser is handling the file: "+fileName);
}
else{
super.parse(fileName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment