Package com.morpheusdata.core.util.image
Class QcowHeader
java.lang.Object
com.morpheusdata.core.util.image.QcowHeader
Created by davidestes on 4/11/16.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cacheByte
(int b) protected void
cacheBytes
(byte[] bytes) protected void
cacheBytes
(byte[] b, int off, int len) protected void
byte[]
getBytes()
long[]
long
getL2Location
(int l1Index) getMagic()
getSize()
void
setBackingFileOffset
(Long backingFileOffset) void
setBackingFileSize
(Long backingFileSize) void
setClusterBits
(Long clusterBits) void
setCryptMethod
(Long cryptMethod) void
void
setL1Table
(long[] l1Table) void
setL1TableOffset
(Long l1TableOffset) void
setL2Table
(LinkedHashMap<Long, Long[]> l2Table) void
void
setNbSnapshots
(Long nbSnapshots) void
setRefcountTableClusters
(Long refcountTableClusters) void
setRefcountTableOffset
(Long refcountTableOffset) void
void
setSnapshotsOffset
(Long snapshotsOffset) void
setVersion
(Long version)
-
Constructor Details
-
QcowHeader
public QcowHeader()
-
-
Method Details
-
getClusterSize
-
getL2Location
public long getL2Location(int l1Index) -
getMagic
-
setMagic
-
getVersion
-
setVersion
-
getBackingFileOffset
-
setBackingFileOffset
-
getBackingFileSize
-
setBackingFileSize
-
getClusterBits
-
setClusterBits
-
getSize
-
setSize
-
getCryptMethod
-
setCryptMethod
-
getL1Size
-
setL1Size
-
getL1TableOffset
-
setL1TableOffset
-
getRefcountTableOffset
-
setRefcountTableOffset
-
getRefcountTableClusters
-
setRefcountTableClusters
-
getNbSnapshots
-
setNbSnapshots
-
getSnapshotsOffset
-
setSnapshotsOffset
-
getL1Table
public long[] getL1Table() -
setL1Table
public void setL1Table(long[] l1Table) -
getL2Table
-
setL2Table
-
getBytes
public byte[] getBytes() -
cacheByte
- Throws:
IOException
-
cacheBytes
- Throws:
IOException
-
cacheBytes
- Throws:
IOException
-
closeCache
- Throws:
IOException
-