public final class StoredFilePathStrategySingleFolder extends StoredFilePathStrategy
Store files in a single folder, using the SOP Instance UID as the filename.
This is not a good strategy, since having too many files in a single folder degrades performance, or bump up against limits, like Linux ext2 31998 sub-folders per inode, but is acceptable for modest numbers of images.
It is the default strategy when not otherwise specified, since it was the original strategy supported in earlier versions of the toolkit.
BYSOPINSTANCEUIDCOMPONENTFOLDERS, BYSOPINSTANCEUIDHASHSUBFOLDERS, BYSOPINSTANCEUIDINSINGLEFOLDER, defaultAlternativeSubfolder
Constructor and Description |
---|
StoredFilePathStrategySingleFolder() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg)
Perform self test.
|
java.lang.String |
makeStoredFilePath(java.lang.String sopInstanceUID)
Generate a path to where to store a file based on its SOP Instance UID.
|
java.lang.String |
toString() |
getDefaultStrategy, makeAlternativeStoredFilePath, makeReliableStoredFilePathWithFoldersCreated, makeReliableStoredFilePathWithFoldersCreated, makeStoredFilePath, test
public static void main(java.lang.String[] arg)
Perform self test. If arguments are given, then use then as test UIDs. If no arguments, then use internal test UIDs.
public java.lang.String makeStoredFilePath(java.lang.String sopInstanceUID)
StoredFilePathStrategy
Generate a path to where to store a file based on its SOP Instance UID.
makeStoredFilePath
in class StoredFilePathStrategy
sopInstanceUID
- the SOP Instance UID of the instance to be savedpublic java.lang.String toString()
toString
in class java.lang.Object