Class QcowHeader

java.lang.Object
com.morpheusdata.core.util.image.QcowHeader

public class QcowHeader extends Object
Created by davidestes on 4/11/16.
  • Constructor Details

    • QcowHeader

      public QcowHeader()
  • Method Details

    • getClusterSize

      public Long getClusterSize()
    • getL2Location

      public long getL2Location(int l1Index)
    • getMagic

      public String getMagic()
    • setMagic

      public void setMagic(String magic)
    • getVersion

      public Long getVersion()
    • setVersion

      public void setVersion(Long version)
    • getBackingFileOffset

      public Long getBackingFileOffset()
    • setBackingFileOffset

      public void setBackingFileOffset(Long backingFileOffset)
    • getBackingFileSize

      public Long getBackingFileSize()
    • setBackingFileSize

      public void setBackingFileSize(Long backingFileSize)
    • getClusterBits

      public Long getClusterBits()
    • setClusterBits

      public void setClusterBits(Long clusterBits)
    • getSize

      public Long getSize()
    • setSize

      public void setSize(Long size)
    • getCryptMethod

      public Long getCryptMethod()
    • setCryptMethod

      public void setCryptMethod(Long cryptMethod)
    • getL1Size

      public Long getL1Size()
    • setL1Size

      public void setL1Size(Long l1Size)
    • getL1TableOffset

      public Long getL1TableOffset()
    • setL1TableOffset

      public void setL1TableOffset(Long l1TableOffset)
    • getRefcountTableOffset

      public Long getRefcountTableOffset()
    • setRefcountTableOffset

      public void setRefcountTableOffset(Long refcountTableOffset)
    • getRefcountTableClusters

      public Long getRefcountTableClusters()
    • setRefcountTableClusters

      public void setRefcountTableClusters(Long refcountTableClusters)
    • getNbSnapshots

      public Long getNbSnapshots()
    • setNbSnapshots

      public void setNbSnapshots(Long nbSnapshots)
    • getSnapshotsOffset

      public Long getSnapshotsOffset()
    • setSnapshotsOffset

      public void setSnapshotsOffset(Long snapshotsOffset)
    • getL1Table

      public long[] getL1Table()
    • setL1Table

      public void setL1Table(long[] l1Table)
    • getL2Table

      public LinkedHashMap<Long,Long[]> getL2Table()
    • setL2Table

      public void setL2Table(LinkedHashMap<Long,Long[]> l2Table)
    • getBytes

      public byte[] getBytes()
    • cacheByte

      protected void cacheByte(int b) throws IOException
      Throws:
      IOException
    • cacheBytes

      protected void cacheBytes(byte[] bytes) throws IOException
      Throws:
      IOException
    • cacheBytes

      protected void cacheBytes(byte[] b, int off, int len) throws IOException
      Throws:
      IOException
    • closeCache

      protected void closeCache() throws IOException
      Throws:
      IOException