Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## be.ehealth.technicalconnector.utils
Class ByteArrayDatasource

    java.lang.Object
      be.ehealth.technicalconnector.utils.ByteArrayDatasource

All Implemented Interfaces:
  DataSource

Direct Known Subclasses:
  ByteArrayDatasource

    public class ByteArrayDatasource

extends Object
implements DataSource

Datasource for the DataHandler. Implementation of `DataSource`

Constructor Summary
`ByteArrayDatasource(byte[] byteArray)` Creates a new ByteArrayDataSource from a byte array
`ByteArrayDatasource(byte[] byteArray, String contentType)` Creates a new ByteArrayDataSource from a byte array

Method Summary
`byte[]` | `getByteArray()`
`String` | `getContentType()`
`InputStream` | `getInputStream()`
`String` | `getName()`
`OutputStream` | `getOutputStream()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ByteArrayDatasource

    public ByteArrayDatasource(byte[] byteArray)

  Creates a new ByteArrayDataSource from a byte array

  Parameters:
    `byteArray` -

### ByteArrayDatasource

    public ByteArrayDatasource(byte[] byteArray,
                               String contentType)

  Creates a new ByteArrayDataSource from a byte array

  Parameters:
    `byteArray` -

Method Detail

### getInputStream

    public InputStream getInputStream()
                               throws IOException

  Specified by:
    `getInputStream` in interface `DataSource`
  Throws:
    `IOException`
  See Also:
    `DataSource.getInputStream()`

### getOutputStream

    public OutputStream getOutputStream()
                                 throws IOException

  Specified by:
    `getOutputStream` in interface `DataSource`
  Throws:
    `IOException`
  See Also:
    `DataSource.getOutputStream()`

### getContentType

    public String getContentType()

  Specified by:
    `getContentType` in interface `DataSource`
  See Also:
    `DataSource.getContentType()`

### getName

    public String getName()

  Specified by:
    `getName` in interface `DataSource`
  See Also:
    `DataSource.getName()`

### getByteArray

    public byte[] getByteArray()

  Returns:
    the byteArray

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Connector Packaging PERSLOGOPEDIST 3.24.0-beta-4 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.