Skip to content

Commit

Permalink
renamed uncompressing to decompressing
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Dec 29, 2024
1 parent c103531 commit d12985a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/attributes/Compression.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum class Compression(val keyword: String) : IppAttributeBuilder {
else -> throw NotImplementedError("compression '$this'")
}

fun getUncompressingInputStream(inputStream: InputStream) = when (this) {
fun getDecompressingInputStream(inputStream: InputStream) = when (this) {
NONE -> inputStream
GZIP -> GZIPInputStream(inputStream)
DEFLATE -> DeflaterInputStream(inputStream)
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ abstract class IppMessage() {
} else {
documentInputStream =
if (operationGroup.containsKey("compression")) {
compression.getUncompressingInputStream(bufferedInputStream)
compression.getDecompressingInputStream(bufferedInputStream)
} else {
bufferedInputStream
}
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/de/gmuth/ipp/core/IppRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class IppRequest : IppMessage {
val requestedAttributes: List<String>
get() = operationGroup.getValues("requested-attributes")

@JvmOverloads
constructor(userAgent: String? = null) : super() {
httpUserAgent = userAgent
}
Expand Down

0 comments on commit d12985a

Please sign in to comment.