UNICORN - iOS
SBJsonStreamParserState.h
1 /*
2  Copyright (c) 2010, Stig Brautaset.
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without
6  modification, are permitted provided that the following conditions are
7  met:
8 
9  Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11 
12  Redistributions in binary form must reproduce the above copyright
13  notice, this list of conditions and the following disclaimer in the
14  documentation and/or other materials provided with the distribution.
15 
16  Neither the name of the the author nor the names of its contributors
17  may be used to endorse or promote products derived from this software
18  without specific prior written permission.
19 
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #import <Foundation/Foundation.h>
34 
35 #import "SBJsonTokeniser.h"
36 #import "SBJsonStreamParser.h"
37 
38 @interface SBJsonStreamParserState : NSObject
39 + (id)sharedInstance;
40 
41 - (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token;
42 - (SBJsonStreamParserStatus)parserShouldReturn:(SBJsonStreamParser*)parser;
43 - (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok;
44 - (BOOL)needKey;
45 - (BOOL)isError;
46 
47 - (NSString*)name;
48 
49 @end
50 
52 @end
53 
55 @end
56 
58 @end
59 
60 
62 @end
63 
65 @end
66 
68 @end
69 
71 @end
72 
74 @end
75 
77 @end
78 
80 @end
81 
83 @end
Definition: SBJsonStreamParserState.h:54
Definition: SBJsonStreamParserState.h:73
Definition: SBJsonStreamParserState.h:64
Definition: SBJsonStreamParserState.h:61
Definition: SBJsonStreamParserState.h:82
Definition: SBJsonStreamParserState.h:79
Definition: SBJsonStreamParserState.h:67
Parse a stream of JSON data.
Definition: SBJsonStreamParser.h:100
Definition: SBJsonStreamParserState.h:38
Definition: SBJsonStreamParserState.h:76
Definition: SBJsonStreamParserState.h:57
Definition: SBJsonStreamParserState.h:70
Definition: SBJsonStreamParserState.h:51