Home
SF Project page

Main
FSP Servers
FSP Software
FSP Downloads

FSP project
Testers needed
FSP Team
Open tasks
CVS

Mailing lists

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

FSP suite
Browse
Copyright
Changelog
Todo
CVS
Freshmeat page

Java library
Browse
API
READ.ME
Changelog
Todo
Freshmeat page

FSP proxy
Browse
READ.ME
Changelog
Todo
Freshmeat page

PyFSP
Browse

C library
Browse
README
NEWS
Changes
TODO
Freshmeat page

Misc
Wizards vs CSH

FSP entry in
GNU dir

Stats
SForge FSP
FM fsp
FM jfsplib
FM fsproxy
FM fsplib
CNW

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

[CNW:Counter]
SourceForge.net Logo

Java FSP library

Copyright

Copyright (c) 2003,2004 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 currently only read-only access. This library supports both client and server method of 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.

Download

See download page.