Home
Get FSP - File Service Protocol Suite at SourceForge.net. Fast, secure and Free Open Source software downloads

Main
FSP Servers
FSP Software
FSP Downloads

FSP project
Testers needed
FSP Team
Open tasks
Bazaar

Mailing lists
Bug Tracker

FSP Documents
Purpose
History
Articles
Today
Future
INFO
FAQ Old | New
FSP Protocol
Quotes

FSP suite
Browse
Copyright
Changelog
Todo
Bazaar
Freshmeat page
Ohloh page

Java library
Browse
API
READ.ME
Changelog
Freshmeat page
Ohloh page

FSP proxy
Browse
READ.ME
Changelog
Freshmeat page

PyFSP
Browse

C library
Browse
README
NEWS
Changes
TODO
Freshmeat page
Ohloh page

Misc
Wizards vs CSH

FSP entry in
GNU dir
Wikipedia

Stats
CNW

My projects
FSP Client
Download Machine
Smart Cache
SC Loader
FSP Suite
Other programs

[CNW:Counter]

Java FSP library

Copyright

Copyright (c) 2003,2004, 2009 by Radim `HSN` Kolar
You may copy or modify this file in any manner you wish, provided that this notice is always included, and that you hold the author harmless for any loss or damage resulting from the installation or use of this software.

What is Java FSP Library

Java FSP library adds support for FSP protocol to Java platform. It can be used system-wide or application wide. Library needs FSPD Version 2.8.1b18 or better and supports IOStreams and functions for read and write access. This library supports both client and server method of FSP packet checksum.

Using java.net.URL API

You can use standard java.net.URL API family to access files on fsp servers by using fsp://host[:port]/path URL syntax. Java FSP library needs to be registered into java.net.URL subsystem first:

Application - wide installation

Just add one line of code to your application:
  java.net.URL.setURLStreamHandlerFactory(new net.fsp.Handler());

System - wide installation

Read API documentation for java.net.URL class. You need to set value of system property java.protocol.handler.pkgs to `net` and install net.fsp package into your CLASSPATH or install provided jar file into Java system directory.

Using FSP util API

You can also use class net.fsp.FSPutil which has similar API to FSP protocol suite util library.

Using IOStreams

Last way how to move files from/to FSP server is to use FSPInput/OutputStreams. You need to create FSPsession first. See Javadoc API for details.

Download

For download see FSP download page.