This file contains 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
var print = (function(){ | |
var out = WScript.StdOut; | |
var print = function print(message){ | |
out.WriteLine(message); | |
}; | |
return print; | |
})(); |
This file contains 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
<context-param> | |
<param-name>log4jConfigLocation</param-name> | |
<param-value>/WEB-INF/log4j.properties</param-value> | |
</context-param> | |
<listener> | |
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> | |
</listener> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<jaxb:bindings | |
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0" | |
xmlns:xjc= "http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"> | |
<jaxb:globalBindings generateElementProperty="false"> | |
<xjc:simple /> | |
</jaxb:globalBindings> | |
</jaxb:bindings> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE glassfish-web-app PUBLIC | |
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" | |
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> | |
<glassfish-web-app> | |
<resource-ref> | |
<res-ref-name>jdbc/helloDbDs</res-ref-name> | |
<jndi-name>jdbc/helloDbDataSource</jndi-name> | |
</resource-ref> | |
</glassfish-web-app> |
This file contains 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 LettingUserDownladFile extends UI { | |
@Override | |
protected void init(VaadinRequest request) { | |
Button downloadButton = new Button("Download image"); | |
StreamResource myResource = createResource(); | |
FileDownloader fileDownloader = new FileDownloader(myResource); | |
fileDownloader.extend(downloadButton); |
This file contains 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
class StreamingStatementCreator implements PreparedStatementCreator { | |
private final String sql; | |
public StreamingStatementCreator(String sql) { | |
this.sql = sql; | |
} | |
@Override | |
public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { | |
final PreparedStatement statement = connection.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); |
This file contains 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 static void main( String[] args ) { | |
try { | |
// String fName = args[ 0 ]; | |
String csvFileAddress = "C:\\Users\\psingh\\Desktop\\test\\New folder\\GenericDealerReport - version6.txt"; //csv file address | |
String xlsxFileAddress = "C:\\Users\\psingh\\Desktop\\trial\\test3.xlsx"; //xlsx file address | |
SXSSFWorkbook workBook = new SXSSFWorkbook( 1000 ); | |
org.apache.poi.ss.usermodel.Sheet sheet = workBook.createSheet( "sheet1" ); |