public class PacketReaderServiceImpl extends Object implements PacketReaderService
| Constructor and Description |
|---|
PacketReaderServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileExistence(String id,
String fileName,
String source)
Check file existence.
|
Object |
getCompleteIdObject(String rid,
String sourcepackets)
Get the complete idObject
|
InputStream |
getEncryptedSourcePacket(String rid,
InputStream inputStream,
String source)
Get the encrypted source packet from the parent zip
|
InputStream |
getFile(String id,
String fileName,
String source)
Gets the file.
|
Double |
getIdSchemaVersionFromPacket(String rid)
Get the schema version from inside default packet
|
public boolean checkFileExistence(String id, String fileName, String source) throws PacketDecryptionFailureException, IOException, ApiNotAccessibleException
PacketReaderServicecheckFileExistence in interface PacketReaderServiceid - the idfileName - the file namesource - the sourcePacketDecryptionFailureException - the packet decryption failure
exceptionIOException - Signals that an I/O exception has
occurred.ApiNotAccessibleExceptionpublic InputStream getFile(String id, String fileName, String source) throws PacketDecryptionFailureException, IOException, ApiNotAccessibleException
PacketReaderServicegetFile in interface PacketReaderServiceid - the idfileName - the file namesource - the sourcePacketDecryptionFailureException - the packet decryption failure
exceptionIOException - Signals that an I/O exception has
occurred.ApiNotAccessibleExceptionpublic InputStream getEncryptedSourcePacket(String rid, InputStream inputStream, String source) throws IOException
PacketReaderServicegetEncryptedSourcePacket in interface PacketReaderServicerid - : The ridinputStream - : parent zip input streamsource - : the source (EX - id, evidence, optional)IOExceptionpublic Object getCompleteIdObject(String rid, String sourcepackets) throws PacketDecryptionFailureException, ApiNotAccessibleException, IOException
PacketReaderServicegetCompleteIdObject in interface PacketReaderServicerid - : The ridPacketDecryptionFailureExceptionApiNotAccessibleExceptionIOExceptionpublic Double getIdSchemaVersionFromPacket(String rid) throws PacketDecryptionFailureException, ApiNotAccessibleException, IOException
PacketReaderServicegetIdSchemaVersionFromPacket in interface PacketReaderServicerid - : registration id to get default packetPacketDecryptionFailureExceptionApiNotAccessibleExceptionIOExceptionCopyright © 2020. All rights reserved.