com.hp.jipp.trans.IppPacketData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jipp-core Show documentation
Show all versions of jipp-core Show documentation
IPP packet builder/parser
// Copyright 2017 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
package com.hp.jipp.trans
import com.hp.jipp.encoding.IppPacket
import java.io.Closeable
import java.io.InputStream
/** An IPP Packet, along with associated additional data, if any */
data class IppPacketData(val packet: IppPacket, val data: InputStream?) : Closeable {
constructor(ippPacket: IppPacket) : this(ippPacket, null)
/** Closes the supplied data stream, if present */
override fun close() {
data?.close()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy