It can be used for both charging as well as data transfer and syncing. It can be either plugged into a laptop or into a USB power adapter for charging from a power socket.
eBay