Input Stream

New in package 167

Syntax

var stream = Http.get( ... );
var stream = FileSystem.file( ... );
etc

Properties

Property Type Description
[name] String File name, last URL path segment, Content-Disposition filename value etc.
[mediaType] String Internet media type (also known as MIME type).
[size] Number File size, Content-length etc, in bytes.
[encoding] String Default encoding to use for reading text from the stream.

Methods

Method Returns Description
copyTo( dir [, options] ) File Saves the content of the stream into the specified directory.
[asText]( [ encoding ] ) String Returns the content of the stream as text. Encoding is one of base64, ascii, utf-16, utf16, utf-8, utf8 and macroman

See also [Error Handling] methods.

See also

FileSystem.File object, Http.Response object

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.