Skip to content

Instantly share code, notes, and snippets.

@sanaulla123
Created January 12, 2013 03:49
Show Gist options
  • Save sanaulla123/4515955 to your computer and use it in GitHub Desktop.
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