class JVMViewCommand extends AbstractCommand {

	@Override
	public void execute(String commandName, BufferedReader reader, BufferedWriter writer)
			throws Py4JException, IOException {
		char subCommand = safeReadLine(reader).charAt(0);
		String returnCommand = null;

		if (subCommand == CREATE_VIEW_SUB_COMMAND_NAME) {
			returnCommand = createJVMView(reader);
		} else if (subCommand == IMPORT_SUB_COMMAND_NAME) {
			returnCommand = doImport(reader);
		} else if (subCommand == REMOVE_IMPORT_SUB_COMMAND_NAME) {
			returnCommand = removeImport(reader);
		} else if (subCommand == SEARCH_SUB_COMMAND_NAME) {
			returnCommand = search(reader);
		} else {
			returnCommand = Protocol.getOutputErrorCommand("Unknown JVM View SubCommand Name: " + subCommand);
		}
		logger.finest("Returning command: " + returnCommand);
		writer.write(returnCommand);
		writer.flush();
	}

	public  JVMViewCommand();

}