org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/RAMResource.java
@Override
  public ResourceInfo getInfo() throws IOException
  {
    RAMEntry entry = getRAMEntry();

    if(entry != null)
      return new StaticInfo(entry.getContentLength(),
                            entry.lastModified());
    else
      throw new ResourceNotFoundException(toURI());
  }
@Override
  public ResourceInfo getInfo() throws IOException
  {
    RAMEntry entry = getRAMEntry();

    if(entry != null)
      return new StaticInfo(entry.getContentLength(),
                            entry.lastModified());
    else
      throw new ResourceNotFoundException(toURI());
  }
Efficiently returns all information about the resource.

@return information about this resource.
@throws IOException if cannot get information