Interface IridaSequenceFile
-
- All Known Implementing Classes:
GenomeAssembly
,GenomeAssemblyFromAnalysis
,SequenceFile
,UploadedAssembly
public interface IridaSequenceFile
Describes fields that must be made available for a Sequence File in IRIDA
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.Path
getFile()
Get the location on the file system where the sequence file is storedjava.lang.String
getFileName()
The base name of the filejava.lang.String
getFileSize()
Get the size of the file.static java.lang.String
humanReadableByteCount(long bytes, boolean si)
From (http://stackoverflow.com/questions/3758606/how-to-convert-byte-size- into-human-readable-format-in-java)
-
-
-
Method Detail
-
getFile
java.nio.file.Path getFile()
Get the location on the file system where the sequence file is stored- Returns:
- the physical location of the file.
-
getFileName
java.lang.String getFileName()
The base name of the file- Returns:
- a string base name of the file
-
getFileSize
java.lang.String getFileSize()
Get the size of the file.- Returns:
- The String representation of the file size
-
humanReadableByteCount
static java.lang.String humanReadableByteCount(long bytes, boolean si)
From (http://stackoverflow.com/questions/3758606/how-to-convert-byte-size- into-human-readable-format-in-java)- Parameters:
bytes
- TheLong
size of the file in bytes.si
-Boolean
true to use si units- Returns:
- A human readable
String
representation of the file size.
-
-