Struct jaded::Parser[][src]

pub struct Parser<T: Read> { /* fields omitted */ }

The main parser class

// Input can be anything that implements Read, eg file or tcp stream
let sample = File::open("sample")?;
// Stream is checked at creation to ensure stream is java serialization
let mut parser = Parser::new(sample)?;
// Objects are read from stream in turn
let obj = parser.read()?;
println!("Read Object: {:?}", obj);
println!("Class name: {}", obj.value().object_data().class_name());

Implementations

impl<T: Read> Parser<T>[src]

pub fn new(source: T) -> Result<Self>[src]

Create a parser to read Java objects from a serial stream

pub fn read(&mut self) -> Result<Content>[src]

Read the next item from the Java stream

Auto Trait Implementations

impl<T> RefUnwindSafe for Parser<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Parser<T> where
    T: Send
[src]

impl<T> Sync for Parser<T> where
    T: Sync
[src]

impl<T> Unpin for Parser<T>[src]

impl<T> UnwindSafe for Parser<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.