com.google.caja.lexer
Class FetchedData.BinaryFetchedData

java.lang.Object
  extended by com.google.caja.lexer.FetchedData
      extended by com.google.caja.lexer.FetchedData.BinaryFetchedData
Enclosing class:
FetchedData

private static class FetchedData.BinaryFetchedData
extends FetchedData


Field Summary
private  byte[] content
           
private  InputSource src
           
 
Fields inherited from class com.google.caja.lexer.FetchedData
charSet, contentType
 
Constructor Summary
FetchedData.BinaryFetchedData(byte[] content, java.lang.String contentType, java.lang.String charSet, InputSource src)
           
 
Method Summary
 java.io.InputStream getBinaryContent()
           
 byte[] getByteContent()
           
 CharProducer getTextualContent()
           
 
Methods inherited from class com.google.caja.lexer.FetchedData
fromBytes, fromCharProducer, fromConnection, fromReader, fromReader, fromStream, getCharSet, getContentType, readStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private final byte[] content

src

private final InputSource src
Constructor Detail

FetchedData.BinaryFetchedData

FetchedData.BinaryFetchedData(byte[] content,
                              java.lang.String contentType,
                              java.lang.String charSet,
                              InputSource src)
Method Detail

getTextualContent

public CharProducer getTextualContent()
                               throws java.io.UnsupportedEncodingException
Specified by:
getTextualContent in class FetchedData
Throws:
java.io.UnsupportedEncodingException

getBinaryContent

public java.io.InputStream getBinaryContent()
Specified by:
getBinaryContent in class FetchedData

getByteContent

public byte[] getByteContent()
Specified by:
getByteContent in class FetchedData


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0