make() public static method

public static make ( Stream input, Long bufSize ) : SysInStream
input Stream
bufSize Long
return SysInStream
Example #1
0
 public override InStream @in(Long bufSize)
 {
     try
     {
         System.IO.Stream stream = (m_file as FileInfo).OpenRead();
         return(SysInStream.make(stream, bufSize));
     }
     catch (System.IO.IOException e)
     {
         throw IOErr.make(e).val;
     }
 }
Example #2
0
//////////////////////////////////////////////////////////////////////////
// Documentation
//////////////////////////////////////////////////////////////////////////

        public string doc()
        {
            if (!m_docLoaded)
            {
                try
                {
                    Stream input = fpod.m_store.read("doc/pod.fandoc");
                    if (input != null)
                    {
                        m_doc = SysInStream.make(input, Long.valueOf(1024L)).readAllStr();
                    }
                }
                catch (Exception e)
                {
                    Err.dumpStack(e);
                }
                m_docLoaded = true;
            }
            return(m_doc);
        }