Package com.morpheusdata.core.util.image
Class VmdkInputStream
java.lang.Object
java.io.InputStream
com.morpheusdata.core.util.image.VmdkInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionVmdkInputStream(InputStream sourceStream, VmdkHeader vmdkHeader, VmdkDirectory vmdkDirectory, Long contentLength) VmdkInputStream(InputStream sourceStream, VmdkHeader vmdkHeader, Long contentLength) VmdkInputStream(InputStream sourceStream, Long contentLength) VmdkInputStream(InputStream sourceStream, Long contentLength, boolean cacheHeaderBytes) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprotected voidintread()Reads the next byte of data from the input stream.voidMethods inherited from class java.io.InputStreamavailable, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
- 
Field Details- 
vmdkHeader
 
- 
- 
Constructor Details- 
VmdkInputStreampublic VmdkInputStream(InputStream sourceStream, Long contentLength, boolean cacheHeaderBytes) throws IllegalArgumentException, IllegalStateException, IOException 
- 
VmdkInputStreampublic VmdkInputStream(InputStream sourceStream, Long contentLength) throws IllegalArgumentException, IllegalStateException, IOException 
- 
VmdkInputStreampublic VmdkInputStream(InputStream sourceStream, VmdkHeader vmdkHeader, Long contentLength) throws IllegalArgumentException, IllegalStateException, IOException 
- 
VmdkInputStreampublic VmdkInputStream(InputStream sourceStream, VmdkHeader vmdkHeader, VmdkDirectory vmdkDirectory, Long contentLength) throws IllegalArgumentException, IllegalStateException, IOException 
 
- 
- 
Method Details- 
readDirectory- Throws:
- IOException
 
- 
isTwoPassNeededpublic boolean isTwoPassNeeded()
- 
readMarker- Throws:
- IOException
 
- 
readReads the next byte of data from the input stream. The value byte is returned as anintin the range0to255. If no byte is available because the end of the stream has been reached, the value-1is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.A subclass must provide an implementation of this method. - Specified by:
- readin class- InputStream
- Returns:
- the next byte of data, or -1if the end of the stream is reached.
- Throws:
- IOException- if an I/O error occurs.
 
- 
loadNextGrainTable- Throws:
- IOException
 
 
-