You can buy this project and download/modify it how often you want.
Protocol handler for res: protocol, loads stream from Java resource.