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 Beginning Java and the fly likes About Adapter Class 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 » Beginning Java
Bookmark "About Adapter Class" Watch "About Adapter Class" New topic
Author

About Adapter Class

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
hi..
Anybody explain to me what is Adapter class in java?
Gavin Tranter
Ranch Hand

Joined: Jan 01, 2007
Posts: 333
Well, I would do a google search, it seems to have some interesting results, also doing a search fro Adaptor pattern might help.

However, basicly, its an adaptor, like a real world adaptor (like when you travel and everywhere has different electrical outlet sockets). It wraps an API to make the API easier to work with, to hide its complexity from the client.

By wrapping an API in an adaptor you provide a buffer between your client and the API, thus if the API changes all you need to change is your adaptor and not your client.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Adapter Class
 
Similar Threads
What is difference between Class Adapter and Object Adapter pattern?
how to get child attribute in parent tag
SCEA assignment query
NX: Adapter class
adapter-pattern