Package org.g4studio.core.resource.support

Examples of org.g4studio.core.resource.support.DefaultResource


    }
    byte[] data = outputStream.toByteArray();
    if (logger.isDebugEnabled()) {
      logger.debug("装载资源成功:" + uri);
    }
    DefaultResource result = new DefaultResource(uri, data);
    result.setLastModified(getFileLastModified(uri));
    return result;
  }
View Full Code Here


      wrapper.flush();
    } catch (IOException e) {
      throw new LoadResoruceException(e);
    }
    byte[] datas = wrapper.getDatas();
    DefaultResource result = new DefaultResource(uri, datas);
    result.setLastModified(getLastModified(uri));
    return result;
  }
View Full Code Here

    byte[] data = outputStream.toByteArray();
    if (logger.isDebugEnabled()) {
      logger.debug("装载资源成功:" + uri);
    }
    DefaultResource result = new DefaultResource(uri, data);
    result.setLastModified(0);
    return result;

  }
View Full Code Here

TOP

Related Classes of org.g4studio.core.resource.support.DefaultResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.