Code example for InputStream

Methods: markSupported

0
 
    public void engineInit(InputStream in)
    { 
        currentStream = in;
 
        if (!currentStream.markSupported())
        { 
            currentStream = new BufferedInputStream(currentStream);
        } 
    } 
 
    public Object engineRead() throws StreamParsingException
    { 
        try 
        { 
 
            currentStream.mark(10);
            int tag = currentStream.read();
 
            if (tag == -1)
Contextual code suggestions in your IDE  Get Codota for Java