25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

15<br />

Streams<br />

Streams are used to create properties containing large (greater than 32K) amounts of data.<br />

<strong>Caché</strong> contains several stream classes that provide access to different data sources using a<br />

common stream interface defined by the %Stream.Object class. Streams are implemented via<br />

a family of classes that include the following members:<br />

• %Stream.Object — the base class for all stream classes.<br />

• %Library.AbstractStream — base class for all streams that can be used as object properties.<br />

• %Library.GlobalCharacterStream — class for character streams stored in global nodes.<br />

• %Library.GlobalBinaryStream — class for binary streams stored in global nodes.<br />

• %Library.FileCharacterStream — class for character streams stored in an external file.<br />

• %Library.FileBinaryStream — class for binary streams stored in an external file.<br />

• %Library.File — class for manipulating external files as streams.<br />

15.1 Declaring Stream Properties<br />

<strong>Caché</strong> supports both binary streams and character streams. Binary streams contain the same<br />

sort of data as type %Binary, and are intended for very large binary objects such as pictures.<br />

Similarly, character streams contain the same sort of data as type %String, and are intended<br />

for storing large amounts of text. Character streams, like strings, may undergo a UNICODE<br />

translation within client applications.<br />

<strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong> 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!