This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductMain { | |
public boolean executeMain(ResourceHolder resourceholder) { | |
Log log = BCLogFactory.getLog(ProductMain.class); | |
CommonPrinter commonPrinter = null; | |
Statement statement = null; | |
ResultSet resultSet = null; | |
try { | |
String outputileName = resourceHolder.getOutputFileName(); | |
commonPrinter = new CommonPrinter(outputFileName, "UTF-8"); | |
Connection connection = resourceHolder.getConnection(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <boost/regex.hpp> | |
int main() | |
{ | |
std::string file_path = "/foo/bar/bunny.obj"; | |
std::string type = "unknown"; | |
boost::regex rx_find_extension("^.*\\.(\\w+)$"); | |
boost::smatch result; | |
if ( boost::regex_match( file_path, result, rx_find_extension ) ) |