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
-
-
Constructor Summary
Constructors Constructor Description OOoFileInputStream(File file)Constructor.OOoFileInputStream(String filePath)Constructeur prenant en paramètre un chemin vers un fichier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidcloseInput()longgetLength()longgetPosition()intreadBytes(byte[][] buffer, int bufferSize)intreadSomeBytes(byte[][] buffer, int bufferSize)voidseek(long arg0)voidskipBytes(int arg0)
-
-
-
Constructor Detail
-
OOoFileInputStream
public OOoFileInputStream(File file) throws FileNotFoundException
Constructor.- Parameters:
file- Fichier- Throws:
FileNotFoundException- Fichier introuvable
-
OOoFileInputStream
public OOoFileInputStream(String filePath) throws FileNotFoundException
Constructeur prenant en paramètre un chemin vers un fichier.- Parameters:
filePath- Chemin vers le fichier.- Throws:
FileNotFoundException- Fichier introuvable
-
-
Method Detail
-
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
-
-