uk.me.parabola.imgfmt.app
Class ImgFile
java.lang.Object
uk.me.parabola.imgfmt.app.ImgFile
- All Implemented Interfaces:
- java.io.Closeable
- Direct Known Subclasses:
- LBLFile, LBLFileReader, MDRFile, NETFile, NETFileReader, NODFile, RGNFile, SRTFile, TREFile, TYPFile
public abstract class ImgFile
- extends java.lang.Object
- implements java.io.Closeable
Base class for all the img files. There is a common header that
all the sub-files share. They also have means of reading and writing
themselves.
- Author:
- Steve Ratcliffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImgFile
public ImgFile()
close
public void close()
- Specified by:
close
in interface java.io.Closeable
position
public int position()
getHeader
protected CommonHeader getHeader()
getSize
public long getSize()
position
protected void position(long pos)
sync
protected final void sync()
throws java.io.IOException
- Throws:
java.io.IOException
getWriter
protected ImgFileWriter getWriter()
setWriter
protected void setWriter(ImgFileWriter writer)
getReader
protected ImgFileReader getReader()
setReader
protected void setReader(ImgFileReader reader)
setHeader
protected final void setHeader(CommonHeader header)
isWritable
protected boolean isWritable()