org.gridkit.jvmtool.spi.parsers
Class FileInputStreamSource

java.lang.Object
  extended by org.gridkit.jvmtool.spi.parsers.FileInputStreamSource
All Implemented Interfaces:
InputStreamSource

public class FileInputStreamSource
extends Object
implements InputStreamSource

Parser may try to downcast InputStreamSource to this implementation if it supports only file based IO.

Author:
Alexey Ragozin (alexey.ragozin@gmail.com)

Constructor Summary
FileInputStreamSource(File file)
           
 
Method Summary
 File getSourceFile()
           
 InputStream open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputStreamSource

public FileInputStreamSource(File file)
Method Detail

getSourceFile

public File getSourceFile()

open

public InputStream open()
                 throws IOException
Specified by:
open in interface InputStreamSource
Throws:
IOException


Copyright © 2019. All Rights Reserved.