Skip to content

Commit

Permalink
Merge pull request #132 from shoshanatech/wrapped-stream-raw-stream
Browse files Browse the repository at this point in the history
Add #rawStream, analogous to #wrappedStream but accessing the innermost wrapped stream
  • Loading branch information
svenvc authored Dec 29, 2023
2 parents 580eb63 + 952dc07 commit 0ad0a6d
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*Zinc-Character-Encoding-Core
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Since this the base stream, answer ourself."

^ self
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*Zinc-Character-Encoding-Core
wrappedStream
"Answer the stream that the receiver wraps.
Since this the base stream, answer nil"

^ nil
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "SocketStream"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*Zinc-Character-Encoding-Core
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Since this the base stream, answer ourself."

^ self
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*Zinc-Character-Encoding-Core
wrappedStream
"Answer the stream that the receiver wraps.
Since this the base stream, answer nil"

^ nil
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Stream"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
initialize-release
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialize-release
wrappedStream

^ stream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
rawStream
"Answer the innermost stream wrapped by the receiver, e.g. a raw binary file stream,
socket stream, or regular Read/WriteStream.
Defer to the wrappedStream."

^ self wrappedStream rawStream
9 changes: 1 addition & 8 deletions repository/Zinc-HTTP.package/monticello.meta/categories.st
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
SystemOrganization addCategory: #'Zinc-HTTP'!
SystemOrganization addCategory: #'Zinc-HTTP-Client-Server'!
SystemOrganization addCategory: #'Zinc-HTTP-Core'!
SystemOrganization addCategory: #'Zinc-HTTP-Exceptions'!
SystemOrganization addCategory: #'Zinc-HTTP-Logging'!
SystemOrganization addCategory: #'Zinc-HTTP-Streaming'!
SystemOrganization addCategory: #'Zinc-HTTP-Support'!
SystemOrganization addCategory: #'Zinc-HTTP-Variables'!
self packageOrganizer ensurePackage: #'Zinc-HTTP' withTags: #(#'Client-Server' #Core #Exceptions #Logging #Streaming #Support #Variables)!

0 comments on commit 0ad0a6d

Please sign in to comment.