jruby/docs BETA
Navigation
org.jruby.util 86
C ASM
C AppendModeChannel
C ArraySupport
C ByteList
C ByteListHelper
I ByteListHolder
I ClassDefiningClassLoader
C ClassDefiningJRubyClassLoader
I ClassProvider
C ClassesLoader
C ClasspathLauncher
C CodeRangeSupport
I CodeRangeable
C CodegenUtils
C CommonByteLists
C ConvertBytes
C ConvertDouble
E DefinedMessage
C Dir
I FileResource
C GenericMap
C IOChannel
C IOInputStream
C IOOutputStream
C IdUtil
C InputStreamMarkCursor
C Inspector
C JDBCDriverUnloader
C JRubyClassLoader
C JRubyFile
C JRubyNonExistentFile
C JRubyObjectInputStream
C JavaNameMangler
C Join
E KCode
C KeyValuePair
I Loader
C MRIRecursionGuard
C Memo
C MurmurHash
C NClassClassLoader
C NoFunctionalitySignalFacade
C NormalizedFile
C Numeric
C OSEnvironment
C OneShotClassLoader
C Pack
C PackUtils
C PerlHash
C PhantomReferenceReaper
C Random
C RecursiveComparator
C ReferenceReaper
C RegexpOptions
C RegexpSupport
C ResourceException
C RubyDateFormatter
C RubyDateParser
C RubyFileTypeDetector
C RubyStringBuilder
C RubyTimeOutputFormatter
C RubyTimeParser
C SafeDoubleParser
C SafeFloatParser
C SafePropertyAccessor
C SecurityHelper
C SelfFirstJRubyClassLoader
C ShellLauncher
I SignalFacade
C SipHashInline
C SoftReferenceReaper
C Sprintf
C StringSupport
C StrptimeParser
C StrptimeToken
C SunSignalFacade
E SymbolNameType
C TimeZoneConverter
I TypeCoercer
C TypeConverter
C URLResource
C URLUtil
C UriLikePathHelper
C WeakIdentityHashMap
C WeakReferenceReaper
C WindowsFFI
IOOutputStream — members 8+
C new(io, encoding, check_append, verify_can_write)
C new(io, check_append, verify_can_write)
C new(io)
C new(io, encoding)
C close()
C write(bite)
C write(b)
C write(b, off, len)
from OutputStream
C flush()

org.jruby.util.IOOutputStream

class extends OutputStream 8 members

This class wraps a IRubyObject in an OutputStream. Depending on which messages the IRubyObject answers to, it will have different functionality. The point is that the IRubyObject could exhibit duck typing, in the style of IO versus StringIO, for example. At the moment, the only functionality supported is writing, and the only requirement on the io-object is that it responds to write() and close() like IO.

Constructors

new

new ( IRubyObject io, Encoding encoding, boolean check_append, boolean verify_can_write )
Java: <init>(org.jruby.runtime.builtin.IRubyObject io, org.jcodings.Encoding encoding, boolean checkAppend, boolean verifyCanWrite)

Creates a new OutputStream with the object provided.

nametypedescription
ioorg.jruby.runtime.builtin.IRubyObjectthe ruby object

new

new ( IRubyObject io, boolean check_append, boolean verify_can_write )
Java: <init>(org.jruby.runtime.builtin.IRubyObject io, boolean checkAppend, boolean verifyCanWrite)

new

new ( IRubyObject io )
Java: <init>(org.jruby.runtime.builtin.IRubyObject io)

Creates a new OutputStream with the object provided.

nametypedescription
ioorg.jruby.runtime.builtin.IRubyObjectthe ruby object

new

new ( IRubyObject io, Encoding encoding )
Java: <init>(org.jruby.runtime.builtin.IRubyObject io, org.jcodings.Encoding encoding)

Instance Methods

close

close ( )
Java: close()

write

write ( int bite )
Java: write(int bite)

write

write ( byte[] b )
Java: write(byte[] b)

write

write ( byte[] b, int off, int len )
Java: write(byte[] b, int off, int len)

Inherited

from OutputStream

flush

flush ( )
Java: flush()