deserialize
public static XrootdBucket deserialize(XrootdSecurityProtocol.BucketType type,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws IOException
Deserialize an XrootdBucket. Depending on the BucketType, return an
XrootdBucket of a specific subtype.
The only type where the returned type is not a-priori known is
kXRS_main, which can be encrypted. If it is encrypted, a binary (raw)
bucket is returned, if it is not encyrpted, a list of contained
buckets (nestedBuffer) is returned.
- Parameters:
type - The type of the bucket that should be deserializedbuffer - The buffer containing the buckets
- Returns:
- The deserialized bucket
- Throws:
IOException - Deserialization fails.