Top Description Fields Constructors Methods
org.apache.derby.impl.io

pack-priv Class URLFile

extends InputStreamFile<URLStorageFactory>
Class Inheritance
Imports
org.apache.derby.io.StorageFile, java.io.InputStream, .IOException, .FileNotFoundException, java.net.URISyntaxException, .URI, .URL

This class provides a http based implementation of the StorageFile interface. It is used by the database engine to access persistent data and transaction logs under the http and https subsubprotocols.

Field Summary

Inherited from org.apache.derby.impl.io.InputStreamFile:
nameStartpathstorageFactory

Constructor Summary

AccessConstructor and Description
pack-priv
URLFile(URLStorageFactory storageFactory, String path)

pack-priv
URLFile(URLStorageFactory storageFactory, String parent, String name)

pack-priv
URLFile(URLFile dir, String name)

private
URLFile(URLStorageFactory storageFactory, String child, int pathLen)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the named file exists, false if not.
exists
()

Implements abstract org.apache.derby.impl.io.InputStreamFile.exists.

Implements org.apache.derby.io.StorageFile.exists.

Tests whether the named file exists.

public InputStream

Returns:

an input stream suitable for reading from the file.
getInputStream
()

Implements abstract org.apache.derby.impl.io.InputStreamFile.getInputStream.

Implements org.apache.derby.io.StorageFile.getInputStream.

Creates an input stream from a file name.

pack-priv StorageFile
getParentDir(int
the length of the parent's path name.
pathLen
)

Implements abstract org.apache.derby.impl.io.InputStreamFile.getParentDir.

Get the parent of this file.

Inherited from org.apache.derby.impl.io.InputStreamFile:
canWritecreateNewFiledeletedeleteAllequalsgetCanonicalPathgetExclusiveFileLockgetNamegetOutputStreamgetOutputStreamgetParentDirgetPathgetRandomAccessFilehashCodeisDirectorylimitAccessToOwnerlistmkdirmkdirsreleaseExclusiveFileLockrenameTosetReadOnlytoString

Constructor Detail

URLFileback to summary
pack-priv URLFile(URLStorageFactory storageFactory, String path)
URLFileback to summary
pack-priv URLFile(URLStorageFactory storageFactory, String parent, String name)
URLFileback to summary
pack-priv URLFile(URLFile dir, String name)
URLFileback to summary
private URLFile(URLStorageFactory storageFactory, String child, int pathLen)

Method Detail

existsback to summary
public boolean exists()

Implements abstract org.apache.derby.impl.io.InputStreamFile.exists.

Implements org.apache.derby.io.StorageFile.exists.

Tests whether the named file exists.

Returns:boolean

true if the named file exists, false if not.

getInputStreamback to summary
public InputStream getInputStream() throws FileNotFoundException

Implements abstract org.apache.derby.impl.io.InputStreamFile.getInputStream.

Implements org.apache.derby.io.StorageFile.getInputStream.

Creates an input stream from a file name.

Returns:InputStream

an input stream suitable for reading from the file.

Exceptions
FileNotFoundException:
if the file is not found.
getParentDirback to summary
pack-priv StorageFile getParentDir(int pathLen)

Implements abstract org.apache.derby.impl.io.InputStreamFile.getParentDir.

Get the parent of this file.

Parameters
pathLen:int

the length of the parent's path name.