1. CamelContext.start() doesn't block stackoverflow.comI want to run a simple Apache Camel example that copies files from one directory to another:
|
2. Java io ugly try-finally block stackoverflow.comIs there a not so ugly way of treat the close() exception to close both streams then:
|
3. The number of blocks allocated to a sparse file stackoverflow.comIs there any way to access the number of blocks allocated to a file with the standard Java File API? Or even do it with some unsupported & undocumented API underneat. ... |
4. Storing file control blocks efficiently stackoverflow.comI currently have an assignment to create a filesystem in Java. I am trying to implement it to be FAT-like. My concern is that I am not storing or reading each ... |
5. io blocking coderanch.comhi, i have written a ftpclient program connecting to the Ftpserver at port 21.Using socket.getInputStream() i read the server responses,but when i use read()!=-1 or readLine()!=null methods the stream gets blocked after reading the first reply from the server.how can i make it work without using threads? (with threads it works fine) --thanks sachin |
6. Blocking on calls to read/writeObject coderanch.comA friendly place for programming greenhorns! Register / Login Java Forums Java I/O and Streams Blocking on calls to read/writeObject Post by: Mike Curwen, Ranch Hand on Apr 03, 2003 10:32:00 Apologies if this is a newbie question. I've had very little call for Streams so far in my coding life. I've inherited some code that I'm trying to ... |
7. closing in finally block - some debate over what part coderanch.comSo I turned on all sorts of warning messages in intellij. And on this block of code: private static Properties loadProperties(File f) throws IOException { Properties p = new Properties(); FileInputStream in = new FileInputStream(f); try { p.load(in); } finally { in.close(); } return p; } Intellij warns me to put the close into a finally block. Hmmmm .... if the ... |
8. Creating file blocks coderanch.comI have been thrown into an assignment in an area where I have VERY little experience. I need to create a class that manipulates a file using .nio. Some parts of this class include create, get, put etc. To get started, I need to divide the file into blocks. Every other method revloves around this. The problem is, I do not ... |
9. Problem with static block and getResourceAsStream coderanch.comI'd think that if the file could not be found, it would throw a FileNotFound exception. You could test if in is null. If it is, the file is not found. Your exception seems to come from within the Properties class which leads me to believe you have a malformed properties file. What does file.properties look like? |
10. Blocking Website based on customer specified keywords coderanch.comi want to block certain website in my browser. when user types/navigates to any page, i will read the URL before page could load in the browser and check for the URL whether it contains any name that user specified like "ad,game,hot,sex,..etc". The page should not be loaded rather it should show a "Warning message". It will be helpful if someone ... |
11. My Try Catch block isn't catching the right value from a file. java-forums.orgJava Code: import java.util.*; import java.io.*; public class lab10 { public static void main(String [] args) { Scanner inScan, fScan = null; String fName; String nextItem; int nextInt = 0; int i = 0; int [] A = new int[5]; File file; try { inScan = new Scanner(System.in); System.out.println("Please enter the file to read from: "); fName = inScan.nextLine(); file = ... |
12. Blocking IO forums.oracle.comwhat does it mean for an IO operation to block? does that mean that it will prevent any other threads from accessing the resource from which it is reading? for example - this is from the API documentation for abstract class Reader read public abstract int read(char[] cbuf, int off, int len) throws IOException Reads characters into a portion of an ... |
13. Problem with blocked JNLP/JAR files when Connectra SSL extender. forums.oracle.comHello there, Great to be among experts and hopefully some one might be able to help me or point somewhere I can get help. The issue is that my company is using a Remote SSL connection software called Connectra NGX (Network Extender) to let remote users connect to the corporate network and from their connect to secure (https) web based database. ... |
14. a question about no block io forums.oracle.com |