Package dalvik.system.profiler
Class BinaryHprofReader
- java.lang.Object
-
- dalvik.system.profiler.BinaryHprofReader
-
public final class BinaryHprofReader extends Object
BinaryHprofReader reader = new BinaryHprofReader(new BufferedInputStream(inputStream)); reader.setStrict(false); // for RI compatability reader.read(); inputStream.close(); reader.getVersion(); reader.getHprofData();
-
-
Constructor Summary
Constructors Constructor Description BinaryHprofReader(InputStream inputStream)Creates a BinaryHprofReader around the specifiedinputStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HprofDatagetHprofData()booleangetStrict()StringgetVersion()voidread()Read the hprof header and records from the inputvoidsetStrict(boolean strict)
-
-
-
Constructor Detail
-
BinaryHprofReader
public BinaryHprofReader(InputStream inputStream) throws IOException
Creates a BinaryHprofReader around the specifiedinputStream- Throws:
IOException
-
-
Method Detail
-
getStrict
public boolean getStrict()
-
setStrict
public void setStrict(boolean strict)
-
getVersion
public String getVersion()
-
getHprofData
public HprofData getHprofData()
-
read
public void read() throws IOExceptionRead the hprof header and records from the input- Throws:
IOException
-
-