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 int
available()
void
closeInput()
long
getLength()
long
getPosition()
int
readBytes(byte[][] buffer, int bufferSize)
int
readSomeBytes(byte[][] buffer, int bufferSize)
void
seek(long arg0)
void
skipBytes(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:
getLength
in interfacecom.sun.star.io.XSeekable
- Throws:
com.sun.star.io.IOException
-
getPosition
public long getPosition() throws com.sun.star.io.IOException
- Specified by:
getPosition
in 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:
seek
in interfacecom.sun.star.io.XSeekable
- Throws:
com.sun.star.io.IOException
-
available
public int available() throws com.sun.star.io.IOException
- Specified by:
available
in interfacecom.sun.star.io.XInputStream
- Throws:
com.sun.star.io.IOException
-
closeInput
public void closeInput() throws com.sun.star.io.IOException
- Specified by:
closeInput
in 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:
readBytes
in 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:
readSomeBytes
in 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:
skipBytes
in interfacecom.sun.star.io.XInputStream
- Throws:
com.sun.star.io.IOException
-
-