public class URLBaseOpenPortfolioImportHandler extends DocumentUnmarshallerPageImportHandler
ImportHandler
implementation that supports transfer data from an external source (like
the jadice webtoolkit). The received data represents a URL from where the real data can be
received. The data is then unmarshalled using the OpenPortfolioFormat.Constructor and Description |
---|
URLBaseOpenPortfolioImportHandler() |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getTransferDataAsStream(Transferable transferable,
DataFlavor dataFlavor)
Get the transfer data as a stream.
|
protected DocumentUnmarshaller |
getUnmarshaller(Transferable transferable,
DataFlavor flavor,
ImportParameters parameters) |
boolean |
isDataFlavorSupported(DataFlavor flavor,
ImportParameters parameters)
Check whether the given
DataFlavor is supported by this import handler. |
beforeImportDocument, getImportActionForFlavor, getReaderControls, importData, setReaderControls
protected DocumentUnmarshaller getUnmarshaller(Transferable transferable, DataFlavor flavor, ImportParameters parameters)
getUnmarshaller
in class DocumentUnmarshallerPageImportHandler
protected InputStream getTransferDataAsStream(Transferable transferable, DataFlavor dataFlavor) throws UnsupportedFlavorException, IOException
DocumentUnmarshallerPageImportHandler
ByteBuffer
: payload data transferred directly via the transferable as a byte buffer
InputStream
: payload data transferred directly via the transferable as an input
stream
File
: payload data transferred via a filesystem-accessible file
URL
: payload data transferred via a URL-based service (e.g. HTTP)
getTransferDataAsStream
in class DocumentUnmarshallerPageImportHandler
UnsupportedFlavorException
IOException
public boolean isDataFlavorSupported(DataFlavor flavor, ImportParameters parameters)
ImportHandler
DataFlavor
is supported by this import handler.flavor
- The flavor in which the transfer bundle will be provided when supported.parameters
- the import parameters containing additional context informationtrue
if the given flavor is supported.Copyright © 2024 levigo holding gmbh. All rights reserved.