001    package railo.runtime.functions.file;
002    
003    import railo.runtime.PageContext;
004    import railo.runtime.exp.FunctionException;
005    import railo.runtime.exp.PageException;
006    import railo.runtime.op.Caster;
007    
008    public class FileSkipBytes {
009    
010    
011            
012            public static String call(PageContext pc, Object fileObj, double len) throws PageException {
013                    
014                    if(!(fileObj instanceof FileStreamWrapper)) 
015                            throw new FunctionException(pc,"FileSkipBytes",1,"fileObj",
016                                            "invalid type ["+Caster.toTypeName(fileObj)+"], only File Object produced by FileOpen supported");
017                    FileStreamWrapper fs=(FileStreamWrapper) fileObj;
018                    fs.skip((int)len);
019                    return null;
020                    
021            }
022            
023    }