This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Java USB Api.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java USB Api.." Watch "Java USB Api.." New topic
Author

Java USB Api..

Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
hi,

The problem is like this...
I have a USB drive attached to my computer and i want to access every
information realated to USB using Java application..and also want to perform data transfer...

Can nyone tell me which api are available???
ny sample program will also work for me.....

bye...


rawat
SCJP 1.4
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41029
    
  43
Data transfer should be simple as far as Java is concerned - it's just another drive you can read from and write to.

What do you mean by "information related to USB"? Do you want to write a driver for USB devices?


Ping & DNS - my free Android networking tools app
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

You can find a Java USB API here: http://jusb.sourceforge.net/

But as Ulf says, if you just want to read or write files from an USB drive, you don't need to use a low level API like this - you can just use the standard I/O classes to read and write files.

Search for "java usb" with Google for more options.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
no i m nt writing USB driver!!!.

General Information abt USB devices i want have....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java USB Api..
 
Similar Threads
aceesing usb dongle from java appn
sending data from java appn(pc) to usb dongle
end and receive data with the Java API for windows
how to access usb port in wtk
sending data from java appn(pc) to usb dongle