Class OOoFileInputStream
java.lang.Object
io.vertigo.quarto.plugins.converter.openoffice.stream.OOoFileInputStream
- All Implemented Interfaces:
com.sun.star.io.XInputStream,com.sun.star.io.XSeekable,com.sun.star.uno.XInterface
public final class OOoFileInputStream
extends Object
implements com.sun.star.io.XInputStream, com.sun.star.io.XSeekable
InputStream de lecture de fichier pour l'envoyer vers le serveur OpenOffice.
- Author:
- tchassagnette
-
Field Summary
Fields inherited from interface com.sun.star.io.XInputStream
UNOTYPEINFOFields inherited from interface com.sun.star.io.XSeekable
UNOTYPEINFO -
Constructor Summary
ConstructorsConstructorDescriptionOOoFileInputStream(File file) Constructor.OOoFileInputStream(String filePath) Constructeur prenant en paramètre un chemin vers un fichier. -
Method Summary
Modifier and TypeMethodDescriptionintvoidlonglongintreadBytes(byte[][] buffer, int bufferSize) intreadSomeBytes(byte[][] buffer, int bufferSize) voidseek(long arg0) voidskipBytes(int arg0)
-
Constructor Details
-
OOoFileInputStream
Constructor.- Parameters:
file- Fichier- Throws:
FileNotFoundException- Fichier introuvable
-
OOoFileInputStream
Constructeur prenant en paramètre un chemin vers un fichier.- Parameters:
filePath- Chemin vers le fichier.- Throws:
FileNotFoundException- Fichier introuvable
-
-
Method Details
-
getLength
public long getLength() throws com.sun.star.io.IOException- Specified by:
getLengthin interfacecom.sun.star.io.XSeekable- Throws:
com.sun.star.io.IOException
-
getPosition
public long getPosition() throws com.sun.star.io.IOException- Specified by:
getPositionin interfacecom.sun.star.io.XSeekable- Throws:
com.sun.star.io.IOException
-
seek
public void seek(long arg0) throws com.sun.star.io.IOException - Specified by:
seekin interfacecom.sun.star.io.XSeekable- Throws:
com.sun.star.io.IOException
-
available
public int available() throws com.sun.star.io.IOException- Specified by:
availablein interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
closeInput
public void closeInput() throws com.sun.star.io.IOException- Specified by:
closeInputin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
readBytes
public int readBytes(byte[][] buffer, int bufferSize) throws com.sun.star.io.IOException - Specified by:
readBytesin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
readSomeBytes
public int readSomeBytes(byte[][] buffer, int bufferSize) throws com.sun.star.io.IOException - Specified by:
readSomeBytesin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
skipBytes
public void skipBytes(int arg0) throws com.sun.star.io.IOException - Specified by:
skipBytesin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-