protected static class URI.URIPool.FileAccessUnit extends URI.URIPool.URIPoolAccessUnitBase
Modifier and Type | Class and Description |
---|---|
protected static class |
URI.URIPool.FileAccessUnit.Queue |
Modifier and Type | Field and Description |
---|---|
protected char[] |
absoluteCharacters
The buffer for absolute file paths.
|
protected java.lang.String |
encodedPath
The final encoded path.
|
protected static java.lang.String |
FILE_BASE
The base URI for file scheme URIs.
|
protected static int |
FILE_BASE_HASH_CODE
The hash code of the base URI for file scheme URIs.
|
protected static int |
FILE_BASE_LENGTH
The length of the base URI for file scheme URIs.
|
protected boolean |
isAbsoluteFile
Whether the file path represents an absolute file.
|
protected boolean |
isAbsolutePath
Whether the path itself is absolute.
|
protected java.lang.String |
path
The file path being accessed.
|
protected char[] |
relativeCharacters
The buffer for relative file paths.
|
protected int[] |
segmentBoundaries
The boundaries of the segments in the path.
|
protected int |
segmentCount
The number of segments in the path.
|
protected int[] |
segmentHashCodes
The hash codes of the segments in the path.
|
protected java.lang.String[] |
segments
The segments of the path.
|
protected int |
usedSegmentCount
The number of segments populated with strings during intern that need to be nulled during reset.
|
charactersAccessUnit, stringAccessUnit, stringArraySegmentsAndSegmentCountAccessUnit, stringPoolEntry, substringAccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Constructor and Description |
---|
URI.URIPool.FileAccessUnit(URI.URIPool.FileAccessUnit.Queue queue)
Creates an instance managed by the given queue.
|
Modifier and Type | Method and Description |
---|---|
URI |
getInternalizedValue()
Gets the value that should be added to the pool.
|
protected boolean |
matches(URI value)
Used to determine whether the given value from the pool is equal to the value being accessed.
|
void |
reset(boolean isExclusive)
Prepare the access unit for reuse.
|
protected void |
setValue(java.lang.String path)
Caches the parameter and computes the hash code.
|
getValue, intern, intern, intern, intern, intern, intern, internArray, setArbitraryValue, setValue
add, getEntry, match, rematches
protected static final java.lang.String FILE_BASE
protected static final int FILE_BASE_LENGTH
protected static final int FILE_BASE_HASH_CODE
protected java.lang.String path
protected char[] absoluteCharacters
protected char[] relativeCharacters
protected java.lang.String[] segments
protected int segmentCount
protected int usedSegmentCount
protected int[] segmentBoundaries
protected int[] segmentHashCodes
protected java.lang.String encodedPath
protected boolean isAbsoluteFile
protected boolean isAbsolutePath
public URI.URIPool.FileAccessUnit(URI.URIPool.FileAccessUnit.Queue queue)
protected void setValue(java.lang.String path)
protected boolean matches(URI value)
Pool.AccessUnit
Object.equals(Object)
.matches
in class Pool.AccessUnit<URI>
public URI getInternalizedValue()
Pool.AccessUnit
getInternalizedValue
in class Pool.AccessUnit<URI>
public void reset(boolean isExclusive)
Pool.AccessUnit
#getValues()
and #getEntries()
and then reset the Pool.AccessUnit.valuesLength
to 0reset
in class URI.URIPool.URIPoolAccessUnitBase