*
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
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: 41522
    
  53
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: 14107
    
  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....
 
Don't get me started about those stupid light bulbs.
 
subject: Java USB Api..