最近我发现了这项技术:server sent events 我想将它与我在 node.js
中的后端代码一起使用我想知道,如果它可能导致内存泄漏?
也许它可以打开同一个用户的多个连接?
或者如果没有调用import java.io.File;
import java.io.IOException;
public class PdfEasyManager {
public static File file;
public static void main(String[] args) throws Exception {
CallEasy();
CallSearch();
/* System.out.println ("StringFile is: " + StringFile);
file = new File (StringFile);*/
//EasySearch easysearchobject = new EasySearch();
//System.out.println(easysearchobject.ToText()); //For some reason this needs to be there in order for it to work..?
/*searchPdftext searchPdftextobject = new searchPdftext();
try {
searchPdftextobject.main(null);
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}*/
}
public static void CallEasy()throws Exception {
EasySearch easysearchobject = new EasySearch();
System.out.println(easysearchobject.ToText()); //For some reason this needs to be there in order for it to work..?
}
public static void CallSearch()throws Exception {
searchPdftext searchPdftextobject = new searchPdftext();
try {
searchPdftextobject.main(null);
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
?