1. Getting the last access time for a file in Java stackoverflow.comI know that using File object we can get the last modified time for a File. But, my requirement is to get the last accessed time for a file in Java. ... |
2. Java access to big file stackoverflow.comI am looking for an efficient way to create a file whose size is unknown but can range from mb's to gb's and fill its content randomly. I may write first ... |
3. Accessing Local file from a browser? stackoverflow.comHi I want to access a local file of my system from the browser? Is there anyway through which it can be achieved as there are lot of security checks invloved? ... |
4. Should I use ACLs if I want to limit access to files on a per-group basis? If so - what's a good Java library? stackoverflow.comNot too sure if I'm barking up the right tree, so I'm wondering if ACLs are the way to go. |
5. Speeding up file system access? stackoverflow.comMy app scans part of a file system, and my users reported it was very slow when they were scanning a network drive. Testing my code, I identified the bottleneck: ... |
6. Unable to access Java-created file -- sometimes stackoverflow.comIn Java, I'm working with code running under WinXP that creates a file like this:
|
7. Query on File access in Java stackoverflow.comI am writing a code that collects all the credit card information of each buyer and storing it in a File. The format that I am using to store information in ... |
8. Remote File Access Client stackoverflow.comI am looking to make a small application that allows a person to access files on their computer remotely. The files are served up by a daemon running on the machine ... |
9. Direct access data in file stackoverflow.comHow can I access 'directly' the data between 200th and 300th characters in a file in a secondary storage device? |
10. Java - Access file with user authentication stackoverflow.comI have a server where I work with a database and files using a java app. When I start my app I give a report regarding file access to the server using:
|
11. How access the file system of a machine connected to LAN stackoverflow.comI want to access the file system of a machine connected to LAN. But that machine is username/password protected. For example my machine path is \192.168.0.10\folder and when I try to ... |
12. accessing files with spaces in filename from java stackoverflow.comI want to access files in a directory which have spaces in filename from a java program but it doesnot access file. Scenario is i have names of file in a file ... |
13. java.io.FilePermission - access denied stackoverflow.comException in thread "AWT-EventQueue-1" java.security.AccessControlException: acc ess denied (java.io.FilePermission write) i am getting the above error when i tried to write into a file. what i need to do kindly help out... i am ... |
14. seeking java access file position, how to learn size of record stackoverflow.comI want to move file descriptor to beginning of the record. I have a class named Record. For example, according to parameter, lets say 4, i want to access beginning of ... |
15. Java - allow access to files during I/O stackoverflow.comIs there any way to allow access to files while they are being used in Java?
|
16. How can I avoiding API Access alerts in WTK stackoverflow.comI have made a Home - Made Nokia 5800 emulator in my WTK 2.5.1, by converting on of the WTK's devices. In my program, i'm using FileConnection. When a call made to this ... |
17. How to access the same file in two different places in Java stackoverflow.comI want to read from file from two different places concurrently. I also want to use buffered i/o stream for efficiency. I tried to work out sth on my own given ... |
18. How can I access to a file exists on remote machine? stackoverflow.comI want to access to a file (read) that exist on a remote machine from my code JAVA,what I need to do that? just the IP of the machine and the location ... |
19. Access to the Environment.SpecialFolder stackoverflow.comMy Desktop Application needs to store and retrieve data from files stored in ProgramData folder (in Win 7). How can I get access to the Environment.SpecialFolder regardless of the Operating System ... |
20. Accessing file from package stackoverflow.comsuppose I put a file a.txt in package com.xyz and the try access it like following. Will it work? Hi All,
|
21. access to file using Java with Samba JCIFS stackoverflow.comI have a question about accessing file with Samba JCIFS. So there is a server I want to access, let's call it server.unv.edu and the workgroup is WKGRP. there is a share in ... |
22. How selenium can test if it has read access to a file stackoverflow.comOur test-app runs on multiple Virtual Machines through Selenium Remote Control. The App sits on a test controller Server. The test-app is used to test a third party online application. How can I test ... |
23. SMBException in SMB file access, while UNC access is successful stackoverflow.commy code try to verify if file exists on remote machine with SMB path, and get SMBException (network unreachable). but when I take the SMB path and convert it to UNC path ... |
24. Problem with access to signed javascript file bytes.com@JohnLorac The description starts off talking about accessing a JavaScript file, but the URL is for a JAR file. Which is it you are trying to use? They are completely different ... |
25. I need your Help!!! -- How to Access protected Web page/Image file? coderanch.comSharp, In this case I don't think your Authenticator works... Yahoo mail seems to use JSP, ASP or something similar to ensure security, so the Authenticator doesnt work. If you could have typed in "http://UserName:Password@mail.yahoo.com" in your browser and go straight into your mail box, then you can get the Authenticator to work... Maybe if Yahoo Mail uses parameters like "http://mail.yahoo.com?User=UserName&Password=PassWord" ... |
26. exclusive file access coderanch.comHi, as i figured out it is possible to open two FileOuputStream objects to the same file and use them simultaneously: fout1 = new FileOutputStream("a.bin"); ... fout2 = new FileOutputStream("a.bin"); Now i expect the second (or any other attempt) to fail because the file is already open for writing. How does this work in java? Peter |
27. How to Allow Write Access coderanch.comHi... I see the method setReadOnly() in File class. The following is a quote from JAVA API for File class. "After invoking this method the file or directory is guaranteed not to change until it is either deleted or marked to allow write access" How can I mark a File object to allow write access? Thanks |
28. Accessing a File coderanch.comHmmmm... I assume that these lines are variable-length, and you don't know in advance how many lines there are. This would seem to make it necessary to read the who file through once in order to get a line count at tleast - and either store some stuff in memory as you go, or be willing to re-read from the beginning ... |
29. Random access reads and writes coderanch.comI am writing strings to a random access file and then attempting to read them back, but I am having a problem. If I use the following code to write the data: byte[] b = new byte[3]; //size of field b = new String("Ab").getBytes(); //The data is only 2 characters file.write(b); The result is writing the bytes: 65, 98, 0. Using ... |
30. access file remotely coderanch.comHi Goh, Although you have only provided enough information for me to make a wild guess as to what you are trying to do, allow me to suggest investigating the "java.net.URL" class (if you haven't already) -- it _is_ part of JDK 1.3 Perhaps if you provided details of the two machines in question (and how they are connected), I may ... |
31. Access is Denied with createNewFile() - HELP! coderanch.comI am writing a backup class, the full() method should delete what's in the destination and recreate everything. When the destination directory is empty and I run it, it works fine. If the destination isn't empty, it deletes the contents, creates the root directory which will then contain all the subdirectories. It works properly if the destination folder is not modified, ... |
32. How to access files on a remote computer? coderanch.comHi, I've written the following method, which retuns an array of Strings containing the names of all the files (and directories) in the location I specify when constructing the File object: private String[] getMatchingFiles() { File dir = new File("c:\\temp"); return dir.list(); } This works just fine when I specify locations on my local machine, but what I'd like to be ... |
33. Random Access Problem coderanch.comA friendly place for programming greenhorns! Register / Login Java Forums Java I/O and Streams Random Access Problem Post by: Franco Baresi, Greenhorn on Mar 03, 2005 10:52:00 I designed an app that writes data to a dat file using a record class my problem is that a funtion I used in the last line of code in the ... |
34. Accessing Remote File coderanch.com |
35. how to access remote files coderanch.comhi i am able to access the remote system files using the java code as follows java file ---------- import java.io.*; import java.lang.String; import java.io.File; import java.util.*; import java.util.List; import java.lang.*; public class FilecheckTest { public static void main(String args[]) { File file_mem = new File("\\\\machinename \\folder1\\folder2\\folder3\\folder4\\"); Map mapfiles = new HashMap(); showFiles(file_mem, mapfiles); Iterator iterator_mapfiles = mapfiles.keySet().iterator(); while(iterator_mapfiles.hasNext()) { String ... |
36. accessing opened file coderanch.comhello I am writing a header record and large number of data records and a trailor record. I would get the count of data records only after I finished writing the data records. The problem is I need to put this count in the hearder itself. How can we do this? I don't want to re-open the file and write the ... |
37. Accessing a file in the middle of creating it. coderanch.comI have a basic console-based JAVA program that creates a ZIP file in a HTTP folder for my clients to download. My question is what's going to happen when in the middle of creating the zip file, my clients try to access the ZIP file. Will they get incomplete file? Thanks in advance for all the advice. |
38. accessing files/dirs on my website (tomcat0 coderanch.comFile dir = new File("C:\\apache-tomcat-5.5.17\\webapps\\india\\delhi\ \images"); this works fine in my machine locally, but on my website.. if, say, I'm in dir where 'images' dir is, this doesn't work... File dir = new File("images") starting @ root of webapp also doesn't work... File dir = new File("/india/delhi/images"); names of directors are good, they are all lowercase... have conditional to test... if ... |
39. access different file system coderanch.com |
40. Remote file access coderanch.comHi everyone!! I have made one application which is doing some validation on the files present in my c drive. But now i want my application to do some validations on files present on c drive of remote computer. Remote computer is present in US and I access it using VPN using remote desktop connection. I dont have much idea from ... |
41. synchronizing access to file coderanch.com |
42. how to access the msword file coderanch.com |
43. Accessing Remote Files coderanch.comHi, i am facing a problem in accessing Remote files. My application has developed in java as well as in .net. from .net side the users selects some images and stores in the particular location say Images folder. now i want to access that image folder from our java. in jave i am using jsp and servlets. i am using Tomcat ... |
44. Direct access to html file coderanch.comIn my application,i am not able to give any security to html file.That is,if i copy the path of html file and write it in other browser's address bar,that html file is still available. Please tell me if there is any way ,through which i can apply some security to html file,so that direct access to it can be prevented. |
45. Radom Access File coderanch.comI had a class(Main class) which consists of RandomAccessFile Object. In main I created an array of objects of another class (say readwrite), and wrote the records(say 25) into the file using write() method of that class. After writing the records, I am trying to read each record and I want to manuplate the record based on my requirement. I am ... |
46. Permssion added for write but still read access to file coderanch.comHi Evyone, If i add a permission through a policy file like permission java.io.FilePermsiion "/home/a.txt" "write" and then try to read the file from the app, even that is allowed Can someone please help me out. The effect of this is that my app can even read from the file mentioned above in the permission, but i want to restrict that. ... |
47. Access java script variable from a java file coderanch.com |
48. accessing .newsrc files... coderanch.com |
49. file system access across operating systems coderanch.comJAVA is capabable of very much, and I am happy to use it, but one thing that I cannot comprehend is working with file systems. This issue seems to be where the run-everywhere principle seems to fail. Some OS's are case sensitive, others are not. Some point applications to the directory where they are executed, and others point to the users ... |
50. Accessing a file in the middle of creating it. coderanch.comI have a basic console-based JAVA program that creates a ZIP file in a HTTP folder for my clients to download. My question is what's going to happen when in the middle of creating the zip file, my clients try to access the ZIP file. Will they get incomplete file? Thanks in advance for all the advice. |
51. accessing method in another file coderanch.comhi, the answer to my question is probably simple but i cant for the life of me work it out. I'm making a simple asteroid game and to keep track of the score i want to use a method in the main file (asteroid.java) that keeps track of the score by modifying a textfield. public void scoreIncrease(int increase) { score += ... |
52. File Access and Alteration coderanch.comI was wondering if this was possible in Java. I posted this in a vb forum since vb seemed pretty easy at the time. I finally decided that I would have to learn a lot of stuff just to be able to do this. So, since I'm currently taking a Java course I thought it might be easier to do with ... |
53. Cannot access file after using package coderanch.com |
54. access contents of Shortcut + java File coderanch.comAs Ernest pointed out, this seems specific to the operating system. I did some experimenting with a folder alias on my Mac, and couldn't find a way in Java to get much out of it. (Represented as a File object, the alias appears to be a file rather than a directory, but the length is zero.) |
55. Some direction accessing a .newsrc file... coderanch.comI have successfully been able to create the .newsrc file if it does not already exist, as well as see all the newsgroups available on a given news server. How can you access a .newsrc file in a user's home directory to see what newsgroups are subscribed to? And when you subscribe to a newsgroup on a NNTP server does it ... |
56. Accessing files, detemining if they exist... coderanch.comI am trying to determine at the start of my program if a file exists. In the File API there is a method, exists() that returns a boolean value if said file exists. In order to access the exists() method, you have to initialize the File object, so effectively you have to create a File to see if it exists. For ... |
57. access different file system coderanch.com |
58. Want to access a file from remote location? coderanch.comI want to achive following tasks :- A web like interface for the network based search engine. Give command through e-mail to search the network Sends results via server for the available files along with the computers of a network. Performs network search for a LAN. i want to Read the inbox of the registered user consistently ... |
59. Accessing File on UNIX coderanch.comI have one application which uploads file On UNIX server.Same application later wanted to access file from unix server by giving credentials(Application connect to server by giving domain name,username,password). Unix server do not have any FTP/HTTP listener its just one terminal on network. Can anyone please suggest a way to access file on unix server either by using Java API or ... |
60. Access Denied - File Reading coderanch.com |
61. Avoiding File Access Multiple Times. coderanch.comHi, I have a program which reads data from a file several times consecutively. It accesses the same file each time for a different operation which is causing the program to run very slowly. Is there any way I can avoid having to read it several times and get copy which I can access faster? Thanks, |
62. access twain enabled devices from java code coderanch.com |
63. How to access Remote file system coderanch.com |
64. Device Access from Java coderanch.com |
65. Access Content from remote FileShare coderanch.comHello All, I want to access files/folders on a remote file share but I do not have access to that file share but I am aware of another user (test user) account credentials who has access to this file share. Example: I access files on my machine like this: File f = new File("C:\\test.txt"); I would like to know how to ... |
66. file access problem coderanch.com |
67. Accessing files under WEB-INF coderanch.com |
68. File access : blanks in file name coderanch.comYou haven't explained why you have these not-quite-correct URLs in the first place. If you're getting them from somewhere else, then you're getting bad data. Or are you making them up yourself? How? In other words I'm suggesting (based on no evidence of what you are actually doing) that you should just get correct URLs in the first place, instead of ... |
69. Access remote machine files java-forums.orgHello, I am trying some java io programs, even I have done some of them and they run very well. I was thinking about accessing the files on remote machine, but unfortunately I do not have an idea to do it. Which classes I have to use to access remote machine file. I was trying using the Socket class but I ... |
70. File access java-forums.orgprivate ArrayList |
71. Need help with accessing files in a method java-forums.orgI have a program in which I'm making selections from a menu and each selection must do something different. As shown below, the first selection chooses a picture file and displays it to be able to process. The second method needs to take that picture and display it, what code do I use to display the previous picture without having to ... |
72. how to access java function from a javascript file java-forums.org |
73. Access is denied when trying to create a file. java-forums.orgpublic static void saveChartAsJPEG(File file, JFreeChart chart, int width, int height, ChartRenderingInfo info) throws IOException { if (file == null) { throw new IllegalArgumentException("Null 'file' argument."); } if (chart == null) { throw new IllegalArgumentException("Null 'chart' argument."); } OutputStream out = new BufferedOutputStream(new FileOutputStream(file)); try { writeChartAsJPEG(out, chart, width, height, info); } finally { out.close(); } } |
74. File Access java-forums.orgI wrote a monopoly program using java that accesses a bunch of images by using the specific filepath of them on my computer like JLabel("C:\\user\\documents\\...") etc. but I would like to be able to turn it into a JAR file and send it to some friends. If the JAR file includes all the images how can I make it so that ... |
75. Accessing Outlook .pst files with Java? forums.oracle.comI am currently working on an application for a law firm that examines the contents of a PC which has been seized as evidence, and I am trying find a way to get any information out of a Microsoft Outlook .pst file about the enclosed mail messages and/or attachments. Searching through old forum entries I see people mentioning bridges to COM ... |
76. how to access an existing folder/directory? forums.oracle.com |
77. Accessing a file and more. forums.oracle.comHi, I have an encrypted text file. I need to do the following things within my program to make it useful. 1. Read the rather large 3.2MB file. 2. Decrypt the file, it is a simple translation of A = F, B = O etc. 3. Put each word into an ArrayList |
78. access denied (java.io.FilePermission forums.oracle.comHi everybody I have a jsp that using outputstream write a jpeg on the server.I have tried this on my local server and everything was ok.but on the server I have the access denied (java.io.FilePermission /var/chroot/home/..../front.jpg write) error.I have set the permission of the folder to 777 but still tyhe same error. Can anyone help me Thanks |
79. file access forums.oracle.com |
80. access denied (java.io.FilePermission filename read) forums.oracle.comIt is an Applet, that is started on a HTML page. Then that is the problem. An applet, per default, is not allowed to access the local filesystem. You need to change your security settings and/or place the applet in a jar and sign it. The signing is a better solution as changing the security settings would allow it for all ... |
81. file access forums.oracle.com |
82. Sequential Access Problem - Nothing is being written to file. forums.oracle.comThere's too much code there for me to look at it all, but I don't see you ever closing the output file. That triggers flushing the output buffer, and is the most common reason for data mysteriously not appearing. If you still have problems, read about how to post a [SSCCE|http://www.sscce.org/] . |
83. accessing SourceSafe file forums.oracle.com |
84. reg File access forums.oracle.comhi sir/Mam, can anyone help me in finding out the filepointer position. I hav used randomacess file concept and i get the filepointer location using getFilePointer(). I want to move the file pointer backwards to some particular character and replace with other character. Using seek(), the loop goes to infinte looping. Can you suggest me a solution for this. Thanks and ... |
85. Access All Files in computer forums.oracle.comI am trying to create a FileTree in java, and I have made one; however, sometimes when I expand a certain node nothing shows up. When I go to windows explorer and try to access the same directory it tells me I need permission. After giving it permission it allows me to view the directory, and it has files in it. ... |
86. Disallow for file system access forums.oracle.comWhat i saw, i dig in code of file permission object and i find that is i pass null then the mask is 'NONE'. I'm developing servlet application, and i need to put some restrictions on piece of code i load dynamically . i need to build some kind of "security try catch" block. I saw an examples of providing my ... |
87. random file access forums.oracle.comHi, I have an huge XML file which needs to be parsed and mapped to objects. say for example |
88. accessing a file and memory problem forums.oracle.comhi gurus; here's the thing: when i initializing a file like File a = new File(xxx); is the file save to memory yet? or it is just initializing only? or when i accessing using randomaccessfile its just save to memory? any good link that teach this kind of things.. any input will much appreciate Thanks |
89. Accessing NTFS Master File Table forums.oracle.com |
90. How to Access configuration file (webagent.conf) from browser? forums.oracle.comHi, Ok. Let me tell you my scenario: I have a java web application in which I need to read a configuration file(WebAgent.conf) that has the reference of another configuration file(SmHost.conf). I am placing both these configuration files in the |
91. File access notification... forums.oracle.com |
92. Accessing files behaving differently forums.oracle.com |
93. Accessing the file when name has changed forums.oracle.com |
94. Getting access to files forums.oracle.comI am using RAD 7.0 as IE I want to access all the files under a directory of my project using Java BUt my project cud be deployed at any location or path so How do I get the relative path using Java? My files are under this path C:\SDP70\workspace_autoMember\FBAutoMemberWebProject\WebContent\properties Plzz help Edited by: Anuj79 on Jun 19, 2008 6:58 AM ... |
95. How to access a remote file using file handling?? forums.oracle.com |
96. ORA-12705: Cannot access NLS data files or invalid environment specified forums.oracle.comThis happens when trying to make connection through tomcat .. java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified at oracle.jdbc.driver.DatabaseError.throwSqlException(java.lang.String, java.lang.String, int) (Unknown Source) at oracle.jdbc.driver.T4CTTIoer.processError(boolean, oracle.jdbc.driver.OracleStatement) (Unknown Source) at oracle.jdbc.driver.T4CTTIoer.processError(boolean) (Unknown Source) at oracle.jdbc.driver.T4CTTIoer.processError() (Unknown Source) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth() (Unknown Source) at oracle.jdbc.driver.T4CConnection.logon() (Unknown Source) at oracle.jdbc.driver.PhysicalConnection.PhysicalConnection(java.lang.String, java.lang.String, ... |
97. Need help on a strange file access prob forums.oracle.com[http://img149.imageshack.us/my.php?image=probpx9.jpg][IMG]http://img149.imageshack.us/img149/2117/probpx9.th.jpg Please see the attached picture. Its' only 17kb. Sorry about my bad drawing but heres the problem. I created a java application to rename & delete files in a directory. When i use it at pc B i am able to change the files located at the network drive using my application. But when i am using the application at ... |
98. Access data file inside a package forums.oracle.com |
99. Accessing File Atributes forums.oracle.comI have to make a program that scans a directory structure and it has to do some checks on each file. Of these checks, i have to get the Time Created, Time Accessed, and Time Modified. I see i can get the Time Modified from the File class. Is there a way to get the Time Accessed and Time Created using ... |
100. File Read: Access Denied forums.oracle.com |