pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.vfs
Class VFSHelpers

java.lang.Object
  extended by org.torweg.pulse.vfs.VFSHelpers

public final class VFSHelpers
extends java.lang.Object

contains static helper methods for the VirtualFileSystem.

Version:
$Revision: 1429 $
Author:
Thomas Weber

Field Summary
static java.lang.StringBuilder ILLEGAL_CHARACTERS
          characters that must not be used in a path element.
 
Method Summary
protected static void checkPathElement(java.lang.String element)
          checks a path element for maximum length and illegal characters.
protected static void checkURI(java.net.URI uri)
          checks, if the given URI matches the expected syntax for URI referring to VirtualFiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ILLEGAL_CHARACTERS

public static final java.lang.StringBuilder ILLEGAL_CHARACTERS
characters that must not be used in a path element.

Method Detail

checkURI

protected static void checkURI(java.net.URI uri)
                        throws VFIOException
checks, if the given URI matches the expected syntax for URI referring to VirtualFiles.

Parameters:
uri - the URI to be checked
Throws:
VFIOException - if the given URI does not comply to the scheme for VFS URIs.

checkPathElement

protected static void checkPathElement(java.lang.String element)
                                throws VFIOException
checks a path element for maximum length and illegal characters.

Parameters:
element - the path element to be checked
Throws:
VFIOException - on errors during the checks