public class LargeFileManagerImpl extends java.lang.Object implements LargeFileManager
Disposable.Parent
Constructor and Description |
---|
LargeFileManagerImpl(VirtualFile vFile,
int pageSize,
int maxPageBorderShift) |
Modifier and Type | Method and Description |
---|---|
void |
addFileChangeListener(FileChangeListener listener) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.lang.String |
getCharsetName() |
FileDataProviderForSearch |
getFileDataProviderForSearch() |
java.lang.String |
getFileName() |
Page |
getPage_wait(long pageNumber)
Warning! Thread-blocking method
|
long |
getPagesAmount() |
int |
getPageSize() |
boolean |
hasBOM() |
void |
requestReadPage(long pageNumber,
ReadingPageResultHandler readingPageResultHandler) |
void |
reset(java.nio.charset.Charset charset) |
public LargeFileManagerImpl(VirtualFile vFile, int pageSize, int maxPageBorderShift) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void reset(java.nio.charset.Charset charset)
reset
in interface LargeFileManager
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.String getCharsetName()
getCharsetName
in interface LargeFileManager
public long getPagesAmount() throws java.io.IOException
getPagesAmount
in interface LargeFileManager
java.io.IOException
public int getPageSize()
getPageSize
in interface LargeFileManager
public Page getPage_wait(long pageNumber) throws java.io.IOException
getPage_wait
in interface LargeFileManager
pageNumber
- - page numberjava.io.IOException
- - error working with file`public boolean hasBOM()
hasBOM
in interface LargeFileManager
public java.lang.String getFileName()
getFileName
in interface LargeFileManager
public FileDataProviderForSearch getFileDataProviderForSearch()
getFileDataProviderForSearch
in interface LargeFileManager
public void requestReadPage(long pageNumber, ReadingPageResultHandler readingPageResultHandler)
requestReadPage
in interface LargeFileManager
public void addFileChangeListener(FileChangeListener listener)
addFileChangeListener
in interface LargeFileManager