GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — EjerciciosEnNET/DecoratorStream at main · rpgrca/EjerciciosEnNET

Expand file tree

/

DecoratorStream

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

DecoratorStream

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
DecoratorStream.cs
DecoratorStream.cs
 
 
DecoratorStream.csproj
DecoratorStream.csproj
 
 
DecoratorStreamMust.cs
DecoratorStreamMust.cs
 
 
README.md
README.md
 
 
Usings.cs
Usings.cs
 
 

README.md

Decorator Stream

Implement methods and properties in the DecoratorStream class:

  • Write method should write the prefix into the underlying stream member only on the first Write invocation. It should always write the bytes it receives to the underlying stream.
  • The prefix should be written in UTF-8 encoding.

For example, if the DecoratorStream is instantiated with "First line: " as the prefix parameter and Write method is called with UTF-8 byte representation of "Hello, world!", it should write "First line: Hello, world!" into the underlying stream.

image

Try it yourself!

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.